GoLang jddayofweek

request it (393)
GoLang replacement for PHP's jddayofweek [edit | history]



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

PHP jddayofweek

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

jddayofweek

(PHP 4, PHP 5, PHP 7)

jddayofweekReturns the day of the week

Description

mixed jddayofweek ( int $julianday [, int $mode = CAL_DOW_DAYNO ] )

Returns the day of the week. Can return a string or an integer depending on the mode.

Parameters

julianday

A julian day number as integer

mode
Calendar week modes
Mode Meaning
0 (Default) Return the day number as an int (0=Sunday, 1=Monday, etc)
1 Returns string containing the day of week (English-Gregorian)
2 Return a string containing the abbreviated day of week (English-Gregorian)

Return Values

The gregorian weekday as either an integer or string.