Struct elastic::types::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 Clone for EpochMillis
[src]
fn clone(&self) -> EpochMillis
impl DateFormat for EpochMillis
[src]
fn name() -> &'static str
The name of the format. Read more
fn parse(date: &str) -> Result<DateTime<Utc>, ParseError>
Parses a date string to a chrono::DateTime<Utc>
result.
fn format<'a>(date: &DateTime<Utc>) -> FormattedDate<'a>
Formats a given chrono::DateTime<Utc>
as a string.
impl Default for EpochMillis
[src]
fn default() -> EpochMillis
impl Copy for EpochMillis
[src]
impl Debug for EpochMillis
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.