GoLang unixtojd

request it (356)
GoLang replacement for PHP's unixtojd [edit | history]



Do you know a GoLang replacement for PHP's unixtojd? Write it!

PHP unixtojd

PHP original manual for unixtojd [ show | php.net ]

unixtojd

(PHP 4, PHP 5, PHP 7)

unixtojdConvert Unix timestamp to Julian Day

Description

int unixtojd ([ int $timestamp = time() ] )

Return the Julian Day for a Unix timestamp (seconds since 1.1.1970), or for the current day if no timestamp is given. Either way, the time is regarded as local time (not UTC).

Parameters

timestamp

A unix timestamp to convert.

Return Values

A julian day number as integer.

See Also

  • jdtounix() - Convert Julian Day to Unix timestamp