2010-12-18 01:50:32 -08:00
|
|
|
This library contains next public exported methods:
|
2010-10-05 06:36:03 -07:00
|
|
|
|
2010-12-18 12:47:24 +03:00
|
|
|
* utc_to_local(DateTime, Timezone) - converts UTC time to local according to specified Timezone
|
|
|
|
* local_to_utc(DateTime, Timezone) - converts local time to UTC
|
|
|
|
* local_to_local(DateTime, TimezoneFrom, TimezoneTo) - converts local time to local
|
|
|
|
* tz_name(DateTime, Timezone) - returns a timezone name (E.g. MSK, MSD, etc)
|
2010-12-18 11:10:36 -08:00
|
|
|
* tz_shift(DateTime, Timezone) - returns time difference between local datetime and GMT
|
|
|
|
* tz_shift(DateTime, TimezoneFrom, TimezoneTo) - returns time difference between local datetime and required timezone
|
2010-10-05 06:36:03 -07:00
|
|
|
Where
|
|
|
|
DateTime = {date(), time()}
|
2010-12-18 10:28:56 -08:00
|
|
|
TimeZone(To, From) = String(). E.g. “Europe/Moscow”, “America/NewYork”. Or abbreviations "MSK", "MSD", etc. Note:
|
2010-12-18 21:11:42 +03:00
|
|
|
abbreviation is just used to find appropriate timezone name. If you want to convert "MSK" -> "PDT", but source timezone
|
|
|
|
is not in daylight saving, it will be corrected by library and "MSK" -> "PST" conversion will be made.
|