getml.data.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

seconds(num)

Transforms num into a float64.

minutes(num)

Expresses num minutes in terms of seconds.

hours(num)

Expresses num hours in terms of seconds.

days(num)

Expresses num days in terms of seconds.

weeks(num)

Expresses num weeks in terms of seconds.

milliseconds(num)

Expresses num milliseconds in terms of fractions of a second.

microseconds(num)

Expresses num microseconds in terms of fractions of a second.