class CivilTime

Defined at line 899 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/cpp/fidl/fuchsia.intl/cpp/natural_types.h

Describes a time on a civil calendar (Gregorian), with nanosecond precision. This is roughly

equivalent to the `tm` struct in `time.h` in the C standard library, and is intended as a

structured intermediate format for printing or parsing dates.

Public Methods

void CivilTime ()

Defined at line 905 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/cpp/fidl/fuchsia.intl/cpp/natural_types.h

void CivilTime (CivilTime && )

Defined at line 906 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/cpp/fidl/fuchsia.intl/cpp/natural_types.h

void CivilTime (Storage_ storage)
void CivilTime (const CivilTime & other)
CivilTime & operator= (const CivilTime & other)
bool operator== (const CivilTime & other)
bool operator!= (const CivilTime & other)
bool IsEmpty ()
const std::optional<uint16_t> & year ()

Year, in the closed range `[1678, 2262]`.

::std::optional<uint16_t> & year ()

Year, in the closed range `[1678, 2262]`.

CivilTime & year (std::optional<uint16_t> value)

Year, in the closed range `[1678, 2262]`.

const std::optional< ::fuchsia_intl::Month> & month ()

Month of the year.

::std::optional< ::fuchsia_intl::Month> & month ()

Month of the year.

CivilTime & month (std::optional< ::fuchsia_intl::Month> value)

Month of the year.

const std::optional<uint8_t> & day ()

Day of the month, in the closed range `[1, 31]`.

::std::optional<uint8_t> & day ()

Day of the month, in the closed range `[1, 31]`.

CivilTime & day (std::optional<uint8_t> value)

Day of the month, in the closed range `[1, 31]`.

const std::optional<uint8_t> & hour ()

Hour of the day, in the closed range `[0, 23]`.

::std::optional<uint8_t> & hour ()

Hour of the day, in the closed range `[0, 23]`.

CivilTime & hour (std::optional<uint8_t> value)

Hour of the day, in the closed range `[0, 23]`.

const std::optional<uint8_t> & minute ()

Minute of the hour, in the closed range `[0, 59]`.

::std::optional<uint8_t> & minute ()

Minute of the hour, in the closed range `[0, 59]`.

CivilTime & minute (std::optional<uint8_t> value)

Minute of the hour, in the closed range `[0, 59]`.

CivilTime & operator= (CivilTime && )

Defined at line 907 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/cpp/fidl/fuchsia.intl/cpp/natural_types.h

const std::optional<uint8_t> & second ()

Second of the minute, in the closed range `[0, 59]`.

(Note that Fuchsia does not currently calculate leap seconds when converting dates.)

::std::optional<uint8_t> & second ()

Second of the minute, in the closed range `[0, 59]`.

(Note that Fuchsia does not currently calculate leap seconds when converting dates.)

CivilTime & second (std::optional<uint8_t> value)

Second of the minute, in the closed range `[0, 59]`.

(Note that Fuchsia does not currently calculate leap seconds when converting dates.)

const std::optional<uint64_t> & nanos ()

Nanosecond, in the closed range `[0, 999_999_999]`.

::std::optional<uint64_t> & nanos ()

Nanosecond, in the closed range `[0, 999_999_999]`.

CivilTime & nanos (std::optional<uint64_t> value)

Nanosecond, in the closed range `[0, 999_999_999]`.

const std::optional< ::fuchsia_intl::DayOfWeek> & weekday ()

Day of the week.

::std::optional< ::fuchsia_intl::DayOfWeek> & weekday ()

Day of the week.

CivilTime & weekday (std::optional< ::fuchsia_intl::DayOfWeek> value)

Day of the week.

const std::optional<uint16_t> & year_day ()

Day of the year, in the closed range `[0, 365]`.

::std::optional<uint16_t> & year_day ()

Day of the year, in the closed range `[0, 365]`.

CivilTime & year_day (std::optional<uint16_t> value)

Day of the year, in the closed range `[0, 365]`.

const std::optional< ::fuchsia_intl::TimeZoneId> & time_zone_id ()

The time zone corresponding to this time. If omitted, the default is UTC.

::std::optional< ::fuchsia_intl::TimeZoneId> & time_zone_id ()

The time zone corresponding to this time. If omitted, the default is UTC.

CivilTime & time_zone_id (std::optional< ::fuchsia_intl::TimeZoneId> value)

The time zone corresponding to this time. If omitted, the default is UTC.

void CivilTime (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits