MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
mh5date.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 Ocean Blue Software Ltd
4  * Copyright © 2000 Koninklijke Philips Electronics N.V
5  *
6  * This file is part of a DTVKit Software Component
7  * You are permitted to copy, modify or distribute this file subject to the terms
8  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
9  *
10  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
11  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
12  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
13  *
14  * If you or your organisation is not a member of DTVKit then you have access
15  * to this source code outside of the terms of the licence agreement
16  * and you are expected to delete this and any associated files immediately.
17  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
18  *******************************************************************************/
26 #ifndef _MH5DATE_H
27 #define _MH5DATE_H
28 
29 /*---includes for this file--------------------------------------------------*/
30 #include "mh5base.h"
31 
32 /*---Constant and macro definitions for public use---------------------------*/
33 
34 /*---Enumerations for public use---------------------------------------------*/
35 
36 /*---Global type defs for public use-----------------------------------------*/
37 
38 /*---Global variable declarations for public use-----------------------------*/
39 
40 /*---Global Function prototypes for public use-------------------------------*/
41 
48 void MHEG5getDate(S32BIT *day, S32BIT *sec);
49 
57 MHEG5String MHEG5formatDate(MHEG5String format, S32BIT day, S32BIT sec);
58 
65 S32BIT MHEG5getDayOfWeek(S32BIT day);
66 
67 U32BIT JulianDate(S32BIT day, S32BIT month, S32BIT year);
68 
69 #endif /*_MH5DATE_H*/
Basis MHEG5 data types.
Definition: mh5base.h:82
S32BIT MHEG5getDayOfWeek(S32BIT day)
Get Day of Week for Davic-Day 0 is Sunday....
Definition: mh5date.c:285
void MHEG5getDate(S32BIT *day, S32BIT *sec)
Modified Julian Date - see Davic 9.2.12.1.
Definition: mh5date.c:111
MHEG5String MHEG5formatDate(MHEG5String format, S32BIT day, S32BIT sec)
Format date - See Davic part 9.0 - 9.2.12.1.
Definition: mh5date.c:144
U32BIT JulianDate(S32BIT day, S32BIT month, S32BIT year)
The function JulianDate() calculates the julian day number for the specified day, month and year...
Definition: mh5date.c:62