Date functions.
More...
Go to the source code of this file.
Functions |
void | MHEG5getDate (S32BIT *day, S32BIT *sec) |
| Modified Julian Date - see Davic 9.2.12.1.
|
MHEG5String | MHEG5formatDate (MHEG5String format, S32BIT day, S32BIT sec) |
| Format date - See Davic part 9.0 - 9.2.12.1.
|
S32BIT | MHEG5getDayOfWeek (S32BIT day) |
| Get Day of Week for Davic-Day 0 is Sunday....
|
U32BIT | JulianDate (S32BIT day, S32BIT month, S32BIT year) |
| The function `JulianDate()` calculates the julian day number for the specified `day`, `month` and `year`. If the year is B.C. a negative number must be given.
|
Detailed Description
Date functions.
- Date:
- 07/02/2002
- Author:
- R.Freeman
Function Documentation
U32BIT JulianDate |
( |
S32BIT |
day, |
|
|
S32BIT |
month, |
|
|
S32BIT |
year |
|
) |
| |
The function `JulianDate()` calculates the julian day number for the specified `day`, `month` and `year`. If the year is B.C. a negative number must be given.
- Parameters:
-
day | Number of days S32BITo current month. |
month | Current month (e.g. Feb = 2). |
year | Current year (e.g. 2002 or -2002 = 2002 B.C.). |
- Returns:
- The function returns the julian day number.
Format date - See Davic part 9.0 - 9.2.12.1.
- Parameters:
-
format | MHEG5String format descriptor. |
day | Number of days since November 17 1858. |
sec | Number of seconds since midnight. |
- Returns:
- Formatted date string.
Modified Julian Date - see Davic 9.2.12.1.
- Parameters:
-
sec | Number of seconds since midnight. |
day | Number of days since November 17, 1858. |
- Returns:
- None
Get Day of Week for Davic-Day 0 is Sunday....
- Parameters:
-
day | Number of days since Nov 17, 1858. |
- Returns:
- Integer day of the week.