|
Botan
2.13.0
Crypto and TLS for C++11
|
#include <calendar.h>
Public Member Functions | |
| calendar_point (uint32_t y, uint32_t mon, uint32_t d, uint32_t h, uint32_t min, uint32_t sec) | |
| uint32_t | get_day () const |
| uint32_t | get_hour () const |
| uint32_t | get_minutes () const |
| uint32_t | get_month () const |
| uint32_t | get_seconds () const |
| uint32_t | get_year () const |
| std::chrono::system_clock::time_point | to_std_timepoint () const |
| std::string | to_string () const |
Public Attributes | |
| BOTAN_DEPRECATED_PUBLIC_MEMBER_VARIABLES | __pad0__: uint32_t year |
| uint32_t | day |
| uint32_t | hour |
| uint32_t | minutes |
| uint32_t | month |
| uint32_t | seconds |
Struct representing a particular date and time
Definition at line 21 of file calendar.h.
|
inline |
Initialize a calendar_point
| y | the year |
| mon | the month |
| d | the day |
| h | the hour |
| min | the minute |
| sec | the second |
Definition at line 54 of file calendar.h.
|
inline |
The day of the month, 1 through 31 (or 28 or 30 based on month
Definition at line 32 of file calendar.h.
Referenced by to_std_timepoint(), to_string(), and Botan::X509_Time::X509_Time().
|
inline |
Hour in 24-hour form, 0 to 23
Definition at line 35 of file calendar.h.
Referenced by to_std_timepoint(), to_string(), and Botan::X509_Time::X509_Time().
|
inline |
Minutes in the hour, 0 to 60
Definition at line 38 of file calendar.h.
Referenced by to_std_timepoint(), to_string(), and Botan::X509_Time::X509_Time().
|
inline |
The month, 1 through 12 for Jan to Dec
Definition at line 29 of file calendar.h.
Referenced by to_std_timepoint(), to_string(), and Botan::X509_Time::X509_Time().
|
inline |
Seconds in the minute, 0 to 60, but might be slightly larger to deal with leap seconds on some systems
Definition at line 43 of file calendar.h.
Referenced by to_std_timepoint(), to_string(), and Botan::X509_Time::X509_Time().
|
inline |
The year
Definition at line 26 of file calendar.h.
Referenced by to_std_timepoint(), to_string(), and Botan::X509_Time::X509_Time().
| std::chrono::system_clock::time_point Botan::calendar_point::to_std_timepoint | ( | ) | const |
Returns an STL timepoint object
Definition at line 60 of file calendar.cpp.
References BOTAN_IF_CONSTEXPR, get_day(), get_hour(), get_minutes(), get_month(), get_seconds(), and get_year().
Referenced by Botan::X509_Time::to_std_timepoint().
| std::string Botan::calendar_point::to_string | ( | ) | const |
Returns a human readable string of the struct's components. Formatting might change over time. Currently it is RFC339 'iso-date-time'.
Definition at line 96 of file calendar.cpp.
References get_day(), get_hour(), get_minutes(), get_month(), get_seconds(), and get_year().
| BOTAN_DEPRECATED_PUBLIC_MEMBER_VARIABLES Botan::calendar_point::__pad0__ |
Definition at line 73 of file calendar.h.
| uint32_t Botan::calendar_point::day |
Definition at line 75 of file calendar.h.
| uint32_t Botan::calendar_point::hour |
Definition at line 76 of file calendar.h.
| uint32_t Botan::calendar_point::minutes |
Definition at line 77 of file calendar.h.
| uint32_t Botan::calendar_point::month |
Definition at line 74 of file calendar.h.
| uint32_t Botan::calendar_point::seconds |
Definition at line 78 of file calendar.h.
1.8.9.1