Struct hdbconnect::types::SecondDate [−][src]
pub struct SecondDate(_);
Implementation of HANA's SecondDate
.
The type is used internally to implement serialization to the wire. It is agnostic of timezones.
Methods
impl SecondDate
[src]
impl SecondDate
pub fn from_ymd_hms(
y: i32,
m: u32,
d: u32,
hour: u32,
minute: u32,
second: u32
) -> HdbResult<SecondDate>
[src]
pub fn from_ymd_hms(
y: i32,
m: u32,
d: u32,
hour: u32,
minute: u32,
second: u32
) -> HdbResult<SecondDate>
Factory method for SecondDate with all fields.
pub fn from_ymd(y: i32, m: u32, d: u32) -> HdbResult<SecondDate>
[src]
pub fn from_ymd(y: i32, m: u32, d: u32) -> HdbResult<SecondDate>
Factory method for SecondDate up to day precision.
pub fn as_ymd_hms(&self) -> (i32, u32, u32, u32, u32, u32)
[src]
pub fn as_ymd_hms(&self) -> (i32, u32, u32, u32, u32, u32)
Convert into tuple of "elements".
pub fn from_date_string(s: &str) -> HdbResult<SecondDate>
[src]
pub fn from_date_string(s: &str) -> HdbResult<SecondDate>
Parses a SecondDate
from a String.
Note that Chrono types serialize as formatted Strings.
We parse such (and other) Strings and construct a SecondDate
.
Trait Implementations
impl Clone for SecondDate
[src]
impl Clone for SecondDate
fn clone(&self) -> SecondDate
[src]
fn clone(&self) -> SecondDate
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 SecondDate
[src]
impl Debug for SecondDate
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 SecondDate
[src]
impl Display for SecondDate
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<SecondDate> for SecondDate
[src]
impl PartialEq<SecondDate> for SecondDate
Auto Trait Implementations
impl Send for SecondDate
impl Send for SecondDate
impl Sync for SecondDate
impl Sync for SecondDate