Struct opcua_types::date_time::DateTime [] [src]

pub struct DateTime {
    pub date_time: DateTime<Utc>,
}

Data type ID 13 Holds a date/time. This is a wrapper around the chrono type with extra functionality for obtaining ticks in OPC UA measurements, endtimes, epoch etc.

Fields

Methods

impl DateTime
[src]

[src]

Constructs from the current time

[src]

Constructs a date time for the epoch

[src]

Constructs a date time for the endtimes

[src]

Returns the maximum tick value, corresponding to the end of time

[src]

Constructs from a year, month, day

[src]

Constructs from a year, month, day, hour, minute, second

[src]

Constructs from a year, month, day, hour, minute, second, nanosecond

[src]

Returns the time in ticks, of 100 nanosecond intervals

[src]

To checked ticks. Function returns 0 or MAX_INT64 if date exceeds valid OPC UA range

[src]

Time as chrono

Trait Implementations

impl PartialEq for DateTime
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for DateTime
[src]

[src]

Formats the value using the given formatter.

impl Clone for DateTime
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl BinaryEncoder<DateTime> for DateTime
[src]

DateTime encoded as 64-bit signed int

[src]

Returns the byte length of the structure. This calculation should be exact and as efficient as possible. Read more

[src]

Encodes the instance to the write stream.

[src]

Decodes an instance from the read stream.

impl Default for DateTime
[src]

[src]

Returns the "default value" for a type. Read more

impl From<(UInt16, UInt16, UInt16, UInt16, UInt16, UInt16)> for DateTime
[src]

[src]

Performs the conversion.

impl From<(UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt32)> for DateTime
[src]

[src]

Performs the conversion.

impl From<DateTime<Utc>> for DateTime
[src]

[src]

Performs the conversion.

impl From<Int64> for DateTime
[src]

[src]

Performs the conversion.

impl Into<Int64> for DateTime
[src]

[src]

Performs the conversion.

impl Into<DateTime<Utc>> for DateTime
[src]

[src]

Performs the conversion.