time.h
Go to the documentation of this file.
1 /*
2  * Copyright 2006-2008 The FLWOR Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef ZORBA_TIME_API_H
18 #define ZORBA_TIME_API_H
19 
20 namespace zorba {
21 namespace time {
22 
23 ///////////////////////////////////////////////////////////////////////////////
24 
25 /**
26  * XQuery 3.0 F&O: 9.8.4.3: The calendars listed below were known to be in use
27  * during the last hundred years.
28  */
29 namespace calendar {
30  enum type {
32  AD, ///< Anno Domini (Christian Era)
33  AH, ///< Anno Hegirae (Muhammedan Era)
34  AM, ///< Anno Mundi (Jewish Calendar)
35  AME, ///< Mauludi Era (solar years since Mohammed's birth)
36  AP, ///< Anno Persici
37  AS, ///< Aji Saka Era (Java)
38  BE, ///< Buddhist Era
39  CB, ///< Cooch Behar Era
40  CE, ///< Common Era
41  CL, ///< Chinese Lunar Era
42  CS, ///< Chula Sakarat Era
43  EE, ///< Ethiopian Era
44  FE, ///< Fasli Era
45  ISO, ///< ISO 8601 calendar
46  JE, ///< Japanese Calendar
47  KE, ///< Khalsa Era (Sikh calendar)
48  KY, ///< Kali Yuga
49  ME, ///< Malabar Era
50  MS, ///< Monarchic Solar Era
51  OS, ///< Old Style (Julian Calendar)
52  RS, ///< Rattanakosin (Bangkok) Era
53  SE, ///< Saka Era
54  SH, ///< Mohammedan Solar Era (Iran)
55  SS, ///< Saka Samvat
56  TE, ///< Tripurabda Era
57  VE, ///< Vikrama Era
58  VS ///< Vikrama Samvat Era
59  };
60 
61 } // namespace calendar
62 
63 ///////////////////////////////////////////////////////////////////////////////
64 
65 } // namespace time
66 } // namespace zorba
67 #endif /* ZORBA_TIME_API_H */
68 /* vim:set et sw=2 ts=2: */