datetime_now
- PlasmaCalcs.tools.history.datetime_now(*, sep='_', tz='local', timespec='microseconds')
current datetime as string according to user’s computer. Include timezone.
Uses “isoformat”, with “_” separator: YYYY-MM-DD_HH:MM:SS.ssssss+HH:MMDatetime (timezone-aware) can be recovered viadatetime.datetime.fromisoformat(str)sep: stringseparator between date and time. ‘_’ nice when spaces not desireable (e.g. file names).‘T’ is nice for more universal recognizability; ‘ ‘ too but slightly less universal.tz: ‘local’, ‘utc’, or datetime.tzinfo objecttimezone to convert result to. ‘local’ –> machine’s local timezone.‘utc’ –> standard/universal time (UTC) (i.e. result will end in +00:00)timespec: str, probably ‘seconds’ or ‘microseconds’passed to datetime.isoformat(). ‘microseconds’ –> YYYY-MM-DD_HH:MM:SS.ssssss+HH:MM