utests fixed
This commit is contained in:
parent
4f3e906ad3
commit
1e6e9fe4ed
2 changed files with 9 additions and 6 deletions
11
README
11
README
|
@ -1,9 +1,10 @@
|
|||
This library contains four exported methods:
|
||||
|
||||
* utc_to_local(DateTime, Timezone)
|
||||
* local_to_utc(DateTime, Timezone)
|
||||
* local_to_local(DateTime, TimezoneFrom, TimezoneTo)
|
||||
* tz_name(DateTime, Timezone)
|
||||
* 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)
|
||||
* tz_shift(DateTime, Timezone) - return shift from local datetime to GMT
|
||||
Where
|
||||
DateTime = {date(), time()}
|
||||
TimeZone(To, From) = String(). E.g. “Europe/Moscow”, “America/NewYork”
|
||||
TimeZone(To, From) = String(). E.g. “Europe/Moscow”, “America/NewYork”
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue