51Degrees Common C/C++  4.1

A shared functionality library that is used by 51Degrees products

Date.hpp

1 /* *********************************************************************
2  * This Source Code Form is copyright of 51 Degrees Mobile Experts Limited.
3  * Copyright 2019 51 Degrees Mobile Experts Limited, 5 Charlotte Close,
4  * Caversham, Reading, Berkshire, United Kingdom RG4 7BY
5  *
6  * This Source Code Form is subject to the terms of the Mozilla Public
7  * License, v. 2.0.
8  *
9  * If a copy of the MPL was not distributed with this file, You can obtain
10  * one at http://mozilla.org/MPL/2.0/.
11  *
12  * This Source Code Form is "Incompatible With Secondary Licenses", as
13  * defined by the Mozilla Public License, v. 2.0.
14  * ********************************************************************* */
15 
16 #ifndef FIFTYONE_DEGREES_DATE_HPP
17 #define FIFTYONE_DEGREES_DATE_HPP
18 
19 #include "date.h"
20 
21 namespace FiftyoneDegrees {
22  namespace Common {
41  class Date {
42  public:
51  Date();
52 
58  Date(const fiftyoneDegreesDate *date);
59 
70  int getYear();
71 
76  int getMonth();
77 
82  int getDay();
83 
87  private:
90  };
91  }
92 }
93 
94 #endif
int getMonth()
Get the month.
Definition: Date.cpp:34
int getYear()
Get the year.
Definition: Date.cpp:32
The Date class wraps the C fiftyoneDegreesDate structure and is used to represent dates in engines.
Definition: Date.hpp:41
51Degrees base namespace.
Definition: Collection.hpp:24
Used to store the date when the dataset was produced and next date 51Degrees expect to provide a new ...
Definition: date.h:47
Date()
Construct a "null" date with year, month and day all set to zero.
Definition: Date.cpp:22
int getDay()
Get the day of the month.
Definition: Date.cpp:36