Struct hdbconnect::types::LongDate [−][src]
pub struct LongDate(_);
Implementation of HANA's LongDate
.
The type is used internally to implement serialization to the wire. It is agnostic of timezones.
Methods
impl LongDate
[src]
impl LongDate
pub fn from_ymd_hms_n(
y: i32,
m: u32,
d: u32,
hour: u32,
minute: u32,
second: u32,
nanosecond: u32
) -> HdbResult<LongDate>
[src]
pub fn from_ymd_hms_n(
y: i32,
m: u32,
d: u32,
hour: u32,
minute: u32,
second: u32,
nanosecond: u32
) -> HdbResult<LongDate>
Factory method for LongDate with all fields.
pub fn from_ymd_hms(
y: i32,
m: u32,
d: u32,
hour: u32,
minute: u32,
second: u32
) -> HdbResult<LongDate>
[src]
pub fn from_ymd_hms(
y: i32,
m: u32,
d: u32,
hour: u32,
minute: u32,
second: u32
) -> HdbResult<LongDate>
Factory method for LongDate up to second precision.
pub fn from_ymd(y: i32, m: u32, d: u32) -> HdbResult<LongDate>
[src]
pub fn from_ymd(y: i32, m: u32, d: u32) -> HdbResult<LongDate>
Factory method for LongDate up to day precision.
pub fn as_ymd_hms_f(&self) -> (i32, u32, u32, u32, u32, u32, u32)
[src]
pub fn as_ymd_hms_f(&self) -> (i32, u32, u32, u32, u32, u32, u32)
Convert into tuple of "elements".
pub fn from_date_string(s: &str) -> HdbResult<LongDate>
[src]
pub fn from_date_string(s: &str) -> HdbResult<LongDate>
Parses a LongDate
from a String.
Note that Chrono types serialize as formatted Strings.
We parse such (and other) Strings and construct a LongDate
.
Trait Implementations
impl Clone for LongDate
[src]
impl Clone for LongDate
fn clone(&self) -> LongDate
[src]
fn clone(&self) -> LongDate
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for LongDate
[src]
impl Debug for LongDate
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for LongDate
[src]
impl Display for LongDate
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq<LongDate> for LongDate
[src]
impl PartialEq<LongDate> for LongDate