Struct oracle::Timestamp
[−]
[src]
pub struct Timestamp { pub year: i32, pub month: u32, pub day: u32, pub hour: u32, pub minute: u32, pub second: u32, pub nanosecond: u32, pub tz_hour_offset: i32, pub tz_minute_offset: i32, pub precision: u8, pub with_tz: bool, }
Timestamp type corresponding to Oracle datetime types: DATE
, TIMESTAMP
,
TIMESTAMP WITH TIME ZONE
and TIMESTAMP WITH LOCAL TIME ZONE
.
Don't use this type directly in your applications. This is public
for types implementing FromSql
and ToSql
traits.
Fields
year: i32
month: u32
day: u32
hour: u32
minute: u32
second: u32
nanosecond: u32
tz_hour_offset: i32
tz_minute_offset: i32
precision: u8
with_tz: bool
Methods
impl Timestamp
[src]
fn new(
year: i32,
month: u32,
day: u32,
hour: u32,
minute: u32,
second: u32,
nanosecond: u32
) -> Timestamp
[src]
year: i32,
month: u32,
day: u32,
hour: u32,
minute: u32,
second: u32,
nanosecond: u32
) -> Timestamp
fn and_tz_offset(&self, offset: i32) -> Timestamp
[src]
fn and_tz_hm_offset(&self, hour_offset: i32, minute_offset: i32) -> Timestamp
[src]
fn with_precision(&self, precision: u8) -> Timestamp
[src]
fn tz_offset(&self) -> i32
[src]
Trait Implementations
impl Debug for Timestamp
[src]
impl Clone for Timestamp
[src]
fn clone(&self) -> Timestamp
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Timestamp
[src]
impl PartialEq for Timestamp
[src]
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Display for Timestamp
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl FromStr for Timestamp
[src]
type Err = ParseOracleTypeError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
Parses a string s
to return a value of this type. Read more