company logo

DateTime :: toUnixTime - Get unix timestamp

The function returns a Unix timestamp from the ODABA timestamp value.

Return value:  Unix time stamp ( int64  )

The unix timestamp contains the number of seconds since 1.1.1970 0:00:00 (UTC), which is an absolute timestamp that might be converted into local time.

Implementation overview

Implementation details

  1. Get standard timestamp
    int64 DateTime  :: toUnixTime ( bool bLocalTime )

    The function returns the Unix timestamp for the current ODABA date. When true has been passed in bLocalTime , the function considers the time value as local time and converts it to Greenwich standard time. When false has been passed in bLocalTime , the function returns the time without converting from local time.

    • bLocalTime - Local or standard time

      The option indicates, that a time value or timestamp contains local time ( true ) or Greenwich standard time ( false ).

  2. to list
  3. Get unix timestamp
    int64 DateTime  :: toUnixTime (  )

    The function returns a Unix timestamp from the timestamp value without adjusting it to local time. Its up to the application interpreting the time stamp as local or standard time value.

  4. to list