-
Notifications
You must be signed in to change notification settings - Fork 0
jcore date
The date module offers functions for date manipulation. Please note that this module does not support handling timezones. For passing and processing dates, a date struct is offered, containing fields for year, month and day.
Returns true, if the passed year is a leap year.
Accepts unix time seconds and calculates based on these a date struct containing the corresponding day in time. The function supports negative unix time seconds for handling date before the 01.01.1970.
Accepts a date struct and calculates based on this a number of seconds since unix time. If the passed date if before unix time, the number of elapsed seconds will be negative.
A simple function for pretty printing a date struct.
Override the print function for pretty printing dates.
Override the printLine function for pretty printing dates with a newline.