Struct lrs::time::DateTime

An expanded date.

Syntax

struct DateTime {
    offset: i64,
    year: i64,
    day_in_year: i16,
    month: i8,
    day: i8,
    hour: i8,
    minute: i8,
    second: i8,
    weekday: Weekday,
    summer_time: bool,
}

Fields

NameDescription
offset

The offset from UTC in seconds.

year

The year.

day_in_year

The day in the year starting at 0.

month

The month in the year starting at 1.

day

The day in the month starting at 1.

hour

The hour.

minute

The minute.

second

The second.

weekday

The weekday.

summer_time

Whether the date falls into summer time.

Trait implementations

NameDescription
Clone

Objects that can be duplicated.

Copy

Objects that can safely be copied via memcpy.

Debug

Objects that can be formatted in a "debug" form.

Eq

Objects that implement the binary == and != operators.

MaybeClone

Objects that can be duplicated.