Clarify the units of origin_server_ts.

This commit is contained in:
Jimmy Cuadra 2019-06-12 13:31:45 -07:00
parent f9347bf57f
commit 9f43f37f41
2 changed files with 4 additions and 2 deletions

View File

@ -204,7 +204,8 @@ pub trait RoomEvent: Event {
/// The unique identifier for the event.
fn event_id(&self) -> &EventId;
/// Timestamp in milliseconds on originating homeserver when this event was sent.
/// Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was
/// sent.
fn origin_server_ts(&self) -> u64;
/// The unique identifier for the room associated with this event.

View File

@ -90,7 +90,8 @@ macro_rules! room_event {
#[serde(rename = "type")]
pub event_type: $crate::EventType,
/// Timestamp in milliseconds on originating homeserver when this event was sent.
/// Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this
/// event was sent.
pub origin_server_ts: u64,
/// The unique identifier for the room associated with this event.