tm2timestamp()

tm2timestamp()#

Convert a struct tm to a timestamp in seconds since the epoch.

Prototype

PUBLIC double tm2timestamp(
    const struct tm *tm
);
        

Parameters

Key

Type

Description

tm

const struct tm *

A pointer to the struct tm to convert.


Return Value

Returns the timestamp as a double value in seconds since the epoch.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples