Skip to content

calendar.h ~ calendar ~ constants

Baptiste Thémine edited this page Aug 6, 2020 · 4 revisions
namespace calendar::constants { /* declarations */ }

Description

Contains all calendar constants.

Implementation

using month::january;
using month::february;
using month::march;
using month::april;
using month::may;
using month::june;
using month::july;
using month::august;
using month::september;
using month::october;
using month::november;
using month::december;
using day_of_week::monday;
using day_of_week::tuesday;
using day_of_week::wednesday;
using day_of_week::thursday;
using day_of_week::friday;
using day_of_week::saturday;
using day_of_week::sunday;
using timezone::UTC;
#ifdef CALENDAR_ENABLE_LOCALTIME
using timezone::UTCLTZ;
#endif

Examples

A typical usage is to ommit the namespace specifier calendar:: when using calendar constants such as below.

#include <JLC/JLC.h>
using namespace JLC;
using namespace calendar::constants;

int main(){
    std::cout << january << std::endl;
    std::cout << tuesday << std::endl;
    std::cout << UTC << std::endl;
}
1
2
0

See also

Clone this wiki locally