|
LAR Library
1.14
|
date.h File Reference
Date and time. More...
#include <larlib/base.h>
Go to the source code of this file.
Data Structures | |
| struct | dateDate_t |
| A gregorian date. More... | |
| struct | dateTime_t |
| A gregorian date with time. More... | |
Enumerations | |
| enum | dateMonths_t { DATE_JAN = 1, DATE_FEB, DATE_MAR, DATE_APR, DATE_MAY, DATE_JUN, DATE_JUL, DATE_AUG, DATE_SEP, DATE_OCT, DATE_NOV, DATE_DEC } |
| Enumeration of months. More... | |
| enum | dateWeekdays_t { DATE_SUN = 0, DATE_MON, DATE_TUE, DATE_WED, DATE_THU, DATE_FRI, DATE_SAT } |
| Enumeration of days of a week. More... | |
Functions | |
| int | dateGet (dateDate_t *d) |
| Return the current system date. More... | |
| int | dateTimeGet (dateTime_t *dt) |
| Return the current system date and time. More... | |
| uint64_t | dateTimeGetMs (void) |
| Return an increasing count of milliseconds. More... | |
| int | dateSet (const dateDate_t *d) |
| Update the system date. More... | |
| int | dateTimeSet (const dateTime_t *dt) |
| Update the system date and time. More... | |
| int | dateToJulianDay (const dateDate_t *d) |
Return the Julian Day Number of d. More... | |
| int | dateFromJulianDay (int jdn, dateDate_t *d) |
| Convert the Julian Day Number to the Gregorian calendar. More... | |
| int | dateWeekday (const dateDate_t *d) |
| Return the weekday of a given date. More... | |
| int | dateIsLeap (uint16_t year) |
| Return non-zero if given year number is a leap year. More... | |
| int | dateIsValid (const dateDate_t *d) |
| Checks if a date is valid. More... | |
| int | dateTimeIsValid (const dateTime_t *dt) |
| Checks if both time and date are valid. More... | |
| int | dateDiff (const dateDate_t *a, const dateDate_t *b) |
| Return the difference, in days, between two dates. More... | |
| int | dateAddDays (dateDate_t *d, int ndays) |
| Add a number of days to a given date. More... | |
| int | dateCompare (const dateDate_t *a, const dateDate_t *b) |
| Compare two dates. More... | |
| int | dateTimeAddSeconds (dateTime_t *dt, int nsecs) |
| Add seconds to a given date and time. More... | |
| int | dateTimeCompare (const dateTime_t *a, const dateTime_t *b) |
| Compare two date times. More... | |
| int | dateTimeDiff (const dateTime_t *a, const dateTime_t *b) |
| Return the difference, in seconds, between two date times. More... | |
Detailed Description
Date and time.
Generated on Mon Mar 27 2017 15:42:52 for LAR Library by
1.8.9.1