Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Timmy_jsoo.Timezoneinclude module type of Timmy.Timezonetype t = Timmy.Timezone.tA timezone.
val of_gmt_offset_seconds : int -> tof_gmt_offset_seconds s is a timezone with a fixed offset of s seconds from UTC. In other words, localtime = UTC + offset.
val of_implementation :
offset_calendar_time_s:
(date:(int * int * int) -> time:(int * int * int) -> int) ->
offset_timestamp_s:(unix_timestamp:Int64.t -> int) ->
tof_implementation ~offset_calendar_time_s ~offset_timestamp_s builds a timezone by providing an implementation of the offset computation from both a date and a timestamp (in seconds).
val utc : tutc is the UTC timezone.
val gmt_offset_seconds_at_datetime :
t ->
date:(int * int * int) ->
time:(int * int * int) ->
intgmt_offset_seconds_at_datetime tz ~date ~time is the number of seconds that offset from UTC, for the given date (year, month, day) and time (hour, minute, second).
Note: In case of an ambiguous date, any of the two valid Time.t will be picked depending on the implementation.
val native : tnative is a system specific implementation that relies on the underlying system to adjust for evolving timezones.