DateTime class
Contents
Container to represent a date time across platforms
Public static functions
Constructors, destructors, conversion operators
Public functions
- auto GetYear() const -> uint32 noexcept
- auto GetDay() const -> fint noexcept
- auto GetMonth() const -> fint noexcept
- auto GetHours() const -> fint noexcept
- auto GetMinutes() const -> fint noexcept
- auto GetSeconds() const -> fint noexcept
- auto GetMonthName() const -> String
- auto GetDayName() const -> String
- auto operator+(const TimeSpan& other) const -> DateTime
- auto operator-(const DateTime& other) const -> TimeSpan
- auto operator-(const TimeSpan& other) const -> DateTime
- auto operator>(const DateTime& other) const -> bool
- auto operator<(const DateTime& other) const -> bool
- auto operator<=(const DateTime& other) const -> bool noexcept
- auto operator>=(const DateTime& other) const -> bool noexcept
- auto operator==(const DateTime& other) const -> bool
- auto operator!=(const DateTime& other) const -> bool
- auto ToUTCTime() const -> DateTime
- auto ToLocalTime() const -> DateTime
Function documentation
bpf:: system:: DateTime:: DateTime(fint month,
fint day,
uint32 year,
fint hour = 0,
fint minute = 0,
fint second = 0)
| Parameters | |
|---|---|
| month | the month number |
| day | the day number in the month |
| year | the year number |
| hour | the hours count |
| minute | the minutes count |
| second | the seconds count |
Constructs a DateTime from individual components
fint bpf:: system:: DateTime:: GetMinutes() const noexcept
| Returns | signed 32 bits |
|---|
Returns the minutes count
fint bpf:: system:: DateTime:: GetSeconds() const noexcept
| Returns | signed 32 bits |
|---|
Returns the seconds count
bool bpf:: system:: DateTime:: operator<=(const DateTime& other) const noexcept
| Parameters | |
|---|---|
| other | operand |
| Returns | true if this is less than or equal to other, false otherwise |
Compare DateTime
bool bpf:: system:: DateTime:: operator>=(const DateTime& other) const noexcept
| Parameters | |
|---|---|
| other | operand |
| Returns | true if this is greater than or equal to other, false otherwise |
Compare DateTime
bool bpf:: system:: DateTime:: operator==(const DateTime& other) const
| Parameters | |
|---|---|
| other | operand |
| Returns | true if this is equal to other, false otherwise |
Compare DateTime
bool bpf:: system:: DateTime:: operator!=(const DateTime& other) const
| Parameters | |
|---|---|
| other | operand |
| Returns | true if this is not equal to other, false otherwise |
Compare DateTime
DateTime bpf:: system:: DateTime:: ToLocalTime() const
| Returns | new DateTime |
|---|
Converts this DateTime to a system localized time