class CivilTime

Defined at line 854 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/cpp/fidl/fuchsia.intl/cpp/wire_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 856 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/cpp/fidl/fuchsia.intl/cpp/wire_types.h

void CivilTime (const CivilTime & other)

Defined at line 857 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/cpp/fidl/fuchsia.intl/cpp/wire_types.h

void CivilTime (CivilTime && other)

Defined at line 859 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/cpp/fidl/fuchsia.intl/cpp/wire_types.h

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

::fidl::WireTableBuilder< ::fuchsia_intl::wire::CivilTime> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_intl::wire::CivilTime> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_intl::wire::CivilTime>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

uint16_t & year ()

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

bool has_year ()
::fuchsia_intl::wire::Month & month ()

Month of the year.

bool has_month ()
uint8_t & day ()

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

bool has_day ()
uint8_t & hour ()

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

bool has_hour ()
uint8_t & minute ()

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

bool has_minute ()
CivilTime & operator= (const CivilTime & other)

Defined at line 858 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/cpp/fidl/fuchsia.intl/cpp/wire_types.h

CivilTime & operator= (CivilTime && other)

Defined at line 860 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/cpp/fidl/fuchsia.intl/cpp/wire_types.h

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.)

bool has_second ()
uint64_t & nanos ()

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

bool has_nanos ()
::fuchsia_intl::wire::DayOfWeek & weekday ()

Day of the week.

bool has_weekday ()
uint16_t & year_day ()

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

bool has_year_day ()
::fuchsia_intl::wire::TimeZoneId & time_zone_id ()

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

bool has_time_zone_id ()
void ~CivilTime ()

Defined at line 862 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/cpp/fidl/fuchsia.intl/cpp/wire_types.h

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder