Feature #11464
Add a date type
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
01/21/2016
Due date:
% Done:
0%
Estimated time:
Description
Many of the protocols we use are for data collection and generally have a timestamp field. Since we don't have a specific type for dates, we typically use the int64
type. We propose adding a date type which gets converted to an appropriate date type in each target language.
Language | Maps to |
---|---|
C++ | struct timespec |
Java | java.util.Date class |
Javascript | Date class |
Obj-C | NSDate |
Erlang | erlang:timestamp() |
Python | class datetime.datetime |