cppcore
A small, portable C++ core library
Loading...
Searching...
No Matches
cppcore::DateTime Class Reference

This class is used to get the current date and time. More...

#include <DateTime.h>

Public Member Functions

 DateTime ()
 The class constructor.

Public Attributes

uint32_t year {0}
 The current year.
uint32_t month {0}
 The current month.
uint32_t day {0}
 The current day.
uint32_t hour {0}
 The current hour.
uint32_t minute {0}
 The current minute.
uint32_t second {0}
 The current second.

Detailed Description

This class is used to get the current date and time.

Definition at line 36 of file DateTime.h.

Constructor & Destructor Documentation

◆ DateTime()

cppcore::DateTime::DateTime ( )
inline

The class constructor.

Definition at line 45 of file DateTime.h.

References day, hour, minute, month, second, and year.

Member Data Documentation

◆ day

uint32_t cppcore::DateTime::day {0}

The current day.

Definition at line 39 of file DateTime.h.

Referenced by DateTime().

◆ hour

uint32_t cppcore::DateTime::hour {0}

The current hour.

Definition at line 40 of file DateTime.h.

Referenced by DateTime().

◆ minute

uint32_t cppcore::DateTime::minute {0}

The current minute.

Definition at line 41 of file DateTime.h.

Referenced by DateTime().

◆ month

uint32_t cppcore::DateTime::month {0}

The current month.

Definition at line 38 of file DateTime.h.

Referenced by DateTime().

◆ second

uint32_t cppcore::DateTime::second {0}

The current second.

Definition at line 42 of file DateTime.h.

Referenced by DateTime().

◆ year

uint32_t cppcore::DateTime::year {0}

The current year.

Definition at line 37 of file DateTime.h.

Referenced by DateTime().


The documentation for this class was generated from the following file: