date_get_second_of_year(date)

From ENIGMA
Jump to navigation Jump to search

Description

Gets the second of the year of the given date-time value and returns it.

NOTE: There are 3.15569e7 seconds in a year, except leap years which have 31,622,400

Parameters

Parameter Data Type Description
date time_t the date-time value to get the second of the year of

Return Values

integer: Returns the second of the year of the date-time value.

Example Call

// demonstrates getting the current second of the year
var second;
second = date_get_second_of_year(date_current_datetime());