TSDuck v3.40-3968
MPEG Transport Stream Toolkit
|
Broken-down fields of a time value. More...
#include <tsTime.h>
Public Member Functions | |
Fields (int year_=0, int month_=0, int day_=0, int hour_=0, int minute_=0, int second_=0, int millisecond_=0) | |
Constructor. | |
bool | isValid () const |
Validation of the fields. | |
bool | operator== (const Fields &other) const |
Equality operator. | |
Broken-down fields of a time value.
This inner class is a simple aggregation of date fields with public members.
ts::Time::Fields::Fields | ( | int | year_ = 0 , |
int | month_ = 0 , |
||
int | day_ = 0 , |
||
int | hour_ = 0 , |
||
int | minute_ = 0 , |
||
int | second_ = 0 , |
||
int | millisecond_ = 0 |
||
) |
Constructor.
There is no verification of the field values.
[in] | year_ | Number of years. |
[in] | month_ | Number of months (1 to 12). |
[in] | day_ | Number of days (1 to 31). |
[in] | hour_ | Number of hours (0 to 23). |
[in] | minute_ | Number of minutes (0 to 59). |
[in] | second_ | Number of seconds (0 to 59). |
[in] | millisecond_ | Number of milliseconds (0 to 999). |
bool ts::Time::Fields::operator== | ( | const Fields & | other | ) | const |
Equality operator.
[in] | other | Another Fields to compare with this object. |
True
is this object is equal to the other object, false
otherwise. bool ts::Time::Fields::isValid | ( | ) | const |
Validation of the fields.