I have seen references in the forum about getting yesterday's date but it is either by changing something in the system (date, time zone, ...) or with more then one line of script cmds.
How can I get yesterday's date without changing anything in the system and in one single command line ?
Only with GNU date, part of coreutils. Otherwise you'll have to write a lower level module - C, perl, python. You may even be able to cram it into one line of perl for example - so you can call it directly. Most of our date stuff uses homegrown perl modules.
Changing $TZ in the above example is local to your instance of shell. It does not affect other users of the computer. Unix and Linux allow individual users to operate in different timezones.