Struct elastic::types::date::prelude::EpochMillis
[−]
[src]
pub struct EpochMillis;
Format for epoch_millis
.
Takes up to a 13 digit string of millis since the epoch and converts to a DateTime
.
This is an efficient formatter, so is a good choice for storing timestamps.
Links
Trait Implementations
impl Copy for EpochMillis
[src]
impl PartialEq<EpochMillis> for EpochMillis
[src]
fn eq(&self, __arg_0: &EpochMillis) -> 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 Clone for EpochMillis
[src]
fn clone(&self) -> EpochMillis
[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 Default for EpochMillis
[src]
fn default() -> EpochMillis
[src]
Returns the "default value" for a type. Read more
impl DateFormat for EpochMillis
[src]
fn name() -> &'static str
[src]
The name of the format. Read more
fn parse(date: &str) -> Result<DateValue, ParseError>
[src]
Parses a date string to a chrono::DateTime<Utc>
result.
fn format(date: &'a DateValue) -> FormattedDate<'a>
[src]
Formats a given chrono::DateTime<Utc>
as a string.