Luna::datetime_to_timestamp

i64 datetime_to_timestamp(const DateTime &datetime)

Converts a data time structure to a timestamp, without any timezone shift.

Parameters

  • in datetime

    The calendar date time to convert.

Return value

Returns the converted timestamp.