time_zone_info v0.3.0 TimeZoneInfo.GregorianSeconds View Source

An implementation for gregorian seconds.

Link to this section Summary

Functions

Computes the number of gregorian seconds starting with year 0 and ending at the specified naive_datetime.

Computes the naive datetime from the specified number of gregorian seconds.

Link to this section Types

Link to this section Functions

Link to this function

from_naive(naive_datetime)

View Source
from_naive(NaiveDateTime.t()) :: t()

Computes the number of gregorian seconds starting with year 0 and ending at the specified naive_datetime.

Link to this function

to_naive(seconds)

View Source
to_naive(t()) :: NaiveDateTime.t()

Computes the naive datetime from the specified number of gregorian seconds.

Link to this function

to_utc(seconds, time_standard, utc_offset, std_offset)

View Source

Converts seconds to UTC seconds.