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
year: i16
month: i16
day: i16
hour: i16
minute: i16
second: i16
Methods
impl Date
[src]
fn new() -> Date
Creates new date object.
The returned date contains the default value of 01.01.1970 00:00:00.
impl Date
[src]
fn to_record_data(&self) -> Vec<RecordData>
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]
impl Clone for Date
[src]
fn clone(&self) -> Date
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more