You can use _ts2utc(ts)_ and _utc2ts(ts)_ methods to convert timestamps from utc to a specific and from a specific timezone or utc. (_utc2ts(ts)_ is currently under construction).
You can use methods to convert timestamp from utc to a specific timezone and from a specific timezone to utc.
You can use offset_seconds2string(offset_seconds)_ and utc_string2seconds(offset_string)_ methods to convert offsets from seconds to string and from string to seconds.
You can use this methods to convert offset from seconds to string and from string to seconds.
Some timezones sites can help you to determine tour timezone.
...
...
@@ -38,11 +49,18 @@ Some timezones sites can help you to determine tour timezone.
the reference epoch of the AaaaHorodatage class stored in _epoch_ class attribute
Default is 1900. Range: 0 <= _epoch_ <= 9999.
You can use _get_epoch_ or _set_epoch_ class methods to get or set it.
You can use this class methods to get or set it.
get_epoch()
set_epoch(num) # 0 <= epoch <= 9999
Please, be consistent with yourself! e.g., you must encode and decode the same timestamp with the same epoch; or the results will be incoherent. It's why this method is a class method.
Remember this: The only way to know what is the reference epoch of a time stamp, is to remember it.