Enumerations

enum Month
Name Value Comments
JANUARY 1

31 days

FEBRUARY 2

28 or 29

MARCH 3

31

APRIL 4

30

MAY 5

31

JUNE 6

30

JULY 7

31

AUGUST 8

31

SEPTEMBER 9

30

OCTOBER 10

31

NOVEMBER 11

30

DECEMBER 12

31

Defined at line 15 of file ../../src/devices/rtc/lib/rtc/include/librtc_llcpp.h

Records

Functions

  • bool IsRtcValid (FidlRtc::wire::Time rtc)

    Defined at line 63 of file ../../src/devices/rtc/lib/rtc/librtc_llcpp.cc

  • FidlRtc::wire::Time SecondsToRtc (uint64_t seconds)

    Convert |seconds| to RTC. If |seconds| is before the local epoch time, then

    the default RTC value is returned instead.

    Defined at line 87 of file ../../src/devices/rtc/lib/rtc/librtc_llcpp.cc

  • uint64_t SecondsSinceEpoch (FidlRtc::wire::Time rtc)

    Defined at line 128 of file ../../src/devices/rtc/lib/rtc/librtc_llcpp.cc

  • FidlRtc::wire::Time SanitizeRtc (zx_device_t * device, FidlRtc::wire::Time rtc)

    Validate that |rtc| is set to a valid time and is later than the default year

    and environment backstop time. If it is, then return |rtc|. Otherwise, return

    the backstop time. If the backstop time isn't available, return the default rtc.

    Defined at line 151 of file ../../src/devices/rtc/lib/rtc/librtc_llcpp.cc