Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace com.example
- struct Tick
- {
- 0: required uint64 epoch;
- }
- enum Timezone
- {
- UTC,
- LOCAL = 1
- }
- struct Timestamp : Tick
- {
- 0: string time;
- 1: Timezone timezone = LOCAL;
- 2: string tz_name;
- }
- struct TimeQuery
- {
- 0: Timezone timezone = LOCAL;
- 1: string format = "MMM dd, yyyy H:mm:ss tt";
- }
- service Clock
- {
- Timestamp get_now (TimeQuery);
- stream Tick on_tick ();
- stream Timestamp on_timestamp ();
- }
Add Comment
Please, Sign In to add comment