datetimestamp
- PlasmaCalcs.tools.history.datetimestamp(filepath, tz='local', *, as_str=False, sep='_')
return (best-effort guess of) datetime.datetime when this file was created or first written.
Result depends on system:- macOS: real birth time- Windows: real creation time- Linux: falls back to modification time (st_mtime)filepath : strpath to filetz: ‘local’, ‘utc’, or datetime.tzinfo objecttimezone to convert result to. ‘local’ –> machine’s local timezone.‘utc’ –> standard/universal time (UTC) (“+00:00” if converted to str)as_str : boolwhether to instead return as isoformat string using sep: YYYY-MM-DD_HH:MM:SS+HH:MMsep: stringseparator between date and time if as_str=True. (default ‘_’ shown in format above^)