Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion format/Message.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,19 @@ table Decimal {
scale: int;
}

/// Date is a 64-bit type representing milliseconds since the UNIX epoch
enum DateUnit: short {
DAY,
MILLISECOND
}

/// Date is either a 32-bit or 64-bit type representing elapsed time since UNIX
/// epoch (1970-01-01), stored in either of two units:
///
/// * Milliseconds (64 bits) indicating UNIX time elapsed since the epoch (no
/// leap seconds), where the values are evenly divisible by 86400000
/// * Days (32 bits) since the UNIX epoch
table Date {
unit: DateUnit;
}

enum TimeUnit: short { SECOND, MILLISECOND, MICROSECOND, NANOSECOND }
Expand Down