Struct gds::Date [] [src]

pub struct Date {
    pub year: i16,
    pub month: i16,
    pub day: i16,
    pub hour: i16,
    pub minute: i16,
    pub second: i16,
}

A structure representing a date in a GDS file.

The year numbering starts at 0 A.D..

Fields

Methods

impl Date
[src]

Creates new date object.

The returned date contains the default value of 01.01.1970 00:00:00.

impl Date
[src]

Creates a RecordData objets.

This function returns the content of the date as RecordData which then can be used for writing to a file.

Trait Implementations

impl Debug for Date
[src]

Formats the value using the given formatter.

impl Clone for Date
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Date
[src]

Formats the value using the given formatter. Read more