pub struct Date { /* private fields */ }Expand description
Exact readable PDF date semantics, without a freshness or occurrence proof.
Implementations§
Source§impl Date
impl Date
Sourcepub fn calendar(self) -> Calendar
pub fn calendar(self) -> Calendar
Original calendar components, with only schema-prescribed defaults.
Sourcepub fn offset_minutes(self) -> i16
pub fn offset_minutes(self) -> i16
Original signed local-time offset in minutes.
Sourcepub fn components(self) -> u8
pub fn components(self) -> u8
Count of explicitly written year/month/day/hour/minute/second fields.
Sourcepub fn has_explicit_zone(self) -> bool
pub fn has_explicit_zone(self) -> bool
Whether the input explicitly wrote Z or a signed timezone.
Sourcepub fn instant(self) -> Instant
pub fn instant(self) -> Instant
The resulting UTC label, without an authenticated clock assertion.
Sourcepub fn read(bytes: &[u8], location: Location, work: &impl Work) -> Result<Self>
pub fn read(bytes: &[u8], location: Location, work: &impl Work) -> Result<Self>
Reads ISO32000-1 §7.9.4, including D:, calendar bounds, ordered optional fields, apostrophe placement and its prescribed GMT default. Numeric defaults and calendar arithmetic are independent of application policy. https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf
Trait Implementations§
impl Copy for Date
impl Eq for Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
impl Freeze for Date
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnsafeUnpin for Date
impl UnwindSafe for Date
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more