-
Notifications
You must be signed in to change notification settings - Fork 0
calendar.h ~ interval ~ constant_type
Baptiste Thémine edited this page Jul 5, 2020
·
6 revisions
namespace interval::constants { typedef Interval const constant_type; }
Defines typename constant_type
and interval constants.
The following constants are accessible through namespaces interval
and interval::constants
.
Name | Value | Description |
---|---|---|
max | 292277025-08-18T07:12:55.807+0000 |
The maximum value of the right extremity of a class Interval. |
min | 0001-01-01T00:00:00+0000 |
The minimum value of the left extremity of a class Interval. |
minmax | 0001-01-01T00:00:00+0000/292277025-08-18T07:12:55.807+0000 |
The largest possible class Interval. |
#include <iostream>
#include "JLC.h"
using namespace JLC;
int main(){
constexpr Interval interval1 = Interval(interval::min,Date(1,2,3));
constexpr Interval interval2 = Interval(Date(1,2,3),interval::max);
constexpr Interval interval3 = interval::minmax;
std::cout << interval1 << std::endl;
std::cout << interval2 << std::endl;
std::cout << interval3 << std::endl;
}
0001-01-01T00:00:00+0000 => 0001-02-03T00:00:00+0000
0001-02-03T00:00:00+0000 => 292277025-08-18T07:12:55.807+0000
0001-01-01T00:00:00+0000 => 292277025-08-18T07:12:55.807+0000