Enumerations | |
enum | DayOfWeek { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday } |
Functions | |
Int32 | CompareDateTime (const DateTime &a, const DateTime &b) |
Float64 | GetJulianDay (const DateTime &t) |
DateTime | FromJulianDay (Float64 j) |
void | GetDateTimeNow (DateTime &t) |
void | GetDateTimeNowGMT (DateTime &t) |
Bool | LocalToGMTime (const DateTime &tLocal, DateTime &tGMT) |
Bool | GMTimeToLocal (const DateTime &tGMT, DateTime &tLocal) |
DayOfWeek | GetDayOfWeek (Int32 lYear, Int32 lMonth, Int32 lDay) |
String | FormatTime (const char *pszFormat, const DateTime &t) |
enum DayOfWeek |
Compare date times a and b.
[in] | a | A date time. |
[in] | b | B date time. |
Gets the Modified Julian Date (http://tycho.usno.navy.mil/mjd.html) from t.
[in] | t | A date time. |
Gets a date time from the Modified Julian Date (http://tycho.usno.navy.mil/mjd.html) j.
[in] | j | A Modified Julian Date. |
void cineware::GetDateTimeNow | ( | DateTime & | t | ) |
Gets the current system date time.
[out] | t | Filled with the current system time. |
void cineware::GetDateTimeNowGMT | ( | DateTime & | t | ) |
Gets the current system date time in GMT.
[out] | t | Filled with the current system GMT time. |
Converts local time to GMT depending on the OS time zone settings.
[in] | tLocal | The local time. |
[out] | tGMT | Filled with the calculated GMT time, or tLocal if an error occurred. |
Converts GMT time to local depending on the OS time zone settings.
[in] | tGMT | The GMT time. |
[out] | tLocal | Filled with the calculated local time, or tGMT if an error occurred. |
Gets the day of the week of the date lYear-lMonth-lDay.
[in] | lYear | The year. |
[in] | lMonth | The month number. (1 means January.) |
[in] | lDay | The day in the month. |