[][src]Trait pgcopy::types::Timestamp

pub trait Timestamp {
    fn to_writer<W: Write>(&self, writer: &mut W) -> Result<()>;
}

Trait for timestamp type implementations.

Implementors should write:

  1. signed 4 bytes of the following data length, value is required to be 8
  2. signed 8 bytes of the timestamp, expressed as a microseconds amount from 2000-01-01T00:00:00+00:00.

Required methods

fn to_writer<W: Write>(&self, writer: &mut W) -> Result<()>

Loading content...

Implementations on Foreign Types

impl Timestamp for NaiveDateTime[src]

Loading content...

Implementors

Loading content...