[][src]Trait yahoo_finance::Timestamped

pub trait Timestamped {
    fn timestamp_millis(&self) -> i64;

    fn datetime(&self) -> DateTime<Utc> { ... }
fn timestamp_seconds(&self) -> i64 { ... } }

A collection of methods for a structure that has a single timestamp

Required methods

fn timestamp_millis(&self) -> i64

Gets the timestamp as the number milliseconds that have elapsed since the EPOCH

Loading content...

Provided methods

fn datetime(&self) -> DateTime<Utc>

Converts the timestamp into a chrono DateTime structure for easier date / time formatting

fn timestamp_seconds(&self) -> i64

Gets the timestamp as the number of seconds that have elapsed since the EPOCH

Loading content...

Implementors

impl Timestamped for Bar[src]

fn timestamp_millis(&self) -> i64[src]

Gets the timestamp in millisecond accuracy

impl Timestamped for Quote[src]

fn timestamp_millis(&self) -> i64[src]

Gets the timestamp in millisecond accuracy

Loading content...