Struct pdf_writer::Date [−][src]
pub struct Date { /* fields omitted */ }
Expand description
A date, represented as a text string.
A field is only respected if all superior fields are supplied. For example,
to set the minute, the hour, day, etc. have to be set. Similarly, in order
for the time zone information to be written, all time information (including
seconds) must be written. utc_offset_minute
is optional if supplying time
zone info. It must only be used to specify sub-hour time zone offsets.
Implementations
Create a new, minimal date. The year will be clamped within the range 0-9999.
Add the month field. It will be clamped within the range 1-12.
Add the hour field. It will be clamped within the range 0-23.
Add the minute field. It will be clamped within the range 0-59.
Add the second field. It will be clamped within the range 0-59.
Add the offset from UTC in hours. If not specified, the time will be assumed to be local to the viewer’s time zone. It will be clamped within the range -23-23.
Add the offset from UTC in minutes. This will have the same sign as set in
Self::utc_offset_hour
. It will be clamped within the range 0-59.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Date
impl UnwindSafe for Date
Blanket Implementations
Mutably borrows from an owned value. Read more