Struct temporenc::DateTimeSubSecondOffset
[−]
[src]
pub struct DateTimeSubSecondOffset { /* fields omitted */ }
A Date and Time with subsecond precision and UTC offset.
Methods
impl DateTimeSubSecondOffset
[src]
fn new(
year: Option<u16>,
month: Option<u8>,
day: Option<u8>,
hour: Option<u8>,
minute: Option<u8>,
second: Option<u8>,
frac_second: FractionalSecond,
offset: OffsetValue
) -> Result<DateTimeSubSecondOffset, CreationError>
year: Option<u16>,
month: Option<u8>,
day: Option<u8>,
hour: Option<u8>,
minute: Option<u8>,
second: Option<u8>,
frac_second: FractionalSecond,
offset: OffsetValue
) -> Result<DateTimeSubSecondOffset, CreationError>
Trait Implementations
impl Debug for DateTimeSubSecondOffset
[src]
impl PartialEq for DateTimeSubSecondOffset
[src]
fn eq(&self, __arg_0: &DateTimeSubSecondOffset) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DateTimeSubSecondOffset) -> bool
This method tests for !=
.
impl Date for DateTimeSubSecondOffset
[src]
fn year(&self) -> Option<u16>
If present, the year. In range [0, 4094].
fn month(&self) -> Option<u8>
If present, the month. In range [1, 12].
fn day(&self) -> Option<u8>
If present, the day. In range [1, 31].
impl Time for DateTimeSubSecondOffset
[src]
fn hour(&self) -> Option<u8>
If present, the number of hours. In range [0, 23].
fn minute(&self) -> Option<u8>
If present, the number of minutes. In range [0, 59].
fn second(&self) -> Option<u8>
If present, the number of seconds. In range [0, 60].
impl SubSecond for DateTimeSubSecondOffset
[src]
fn fractional_second(&self) -> FractionalSecond
impl Offset for DateTimeSubSecondOffset
[src]
fn offset(&self) -> OffsetValue
impl Serializable for DateTimeSubSecondOffset
[src]
fn max_serialized_size() -> usize
The largest encoded size of any instance of the type. Some types have variable precision, and instances with higher precision will use more bytes than those with lower precision. Read more
fn serialized_size(&self) -> usize
The encoded size of this instance. No larger than max_serialized_size()
.
fn serialize<W: Write>(
&self,
writer: &mut W
) -> Result<usize, SerializationError>
&self,
writer: &mut W
) -> Result<usize, SerializationError>
Serialize into the provided writer with the Temporenc format. Returns the number of bytes written, which will be the same as serialized_size()
. Read more
impl Deserializable for DateTimeSubSecondOffset
[src]
fn deserialize<R: Read>(
reader: &mut R
) -> Result<DateTimeSubSecondOffset, DeserializationError>
reader: &mut R
) -> Result<DateTimeSubSecondOffset, DeserializationError>
Deserialize from the provided reader with the Temporenc format.