time

Convenience functions for the handling of time stamps.

In getML, time stamps are always expressed as a floating point value. This float measures the number of seconds since UNIX time (January 1, 1970, 00:00:00). Smaller units of time are expressed as fractions of a second.

To make this a bit easier to handle, this module contains simple convenience functions that express other time units in terms of seconds.

Functions

datetime(year, month, day[, hour, minute, …])

Returns the number of seconds since UNIX time (January 1, 1970, 00:00:00).

days(num)

Expresses num days in terms of seconds.

hours(num)

Expresses num hours in terms of seconds.

microseconds(num)

Expresses num microseconds in terms of fractions of a second.

milliseconds(num)

Expresses num milliseconds in terms of fractions of a second.

minutes(num)

Expresses num minutes in terms of seconds.

seconds(num)

Transforms num into a float64.

weeks(num)

Expresses num weeks in terms of seconds.