You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Neel Natu (JIRA)" <ji...@apache.org> on 2016/03/03 20:25:18 UTC
[jira] [Commented] (MYNEWT-4) Need the concept of wallclock time
[ https://issues.apache.org/jira/browse/MYNEWT-4?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15178427#comment-15178427 ]
Neel Natu commented on MYNEWT-4:
--------------------------------
Pull request: https://github.com/apache/incubator-mynewt-larva/pull/8
Here's the test plan that I executed (it should eventually make it into the test package):
year:
common case, 9999, 1970, less than 1970, greater than 9999,
non-numeric chars in string, number of digits != 4
invalid delimiter (not '-') between year and month
month:
all legal months (01-12), illegal months (00, 13, 43 etc),
non-numeric characters in the month, number of characters not equal to 2.
invalid delimiter (not '-') between month and day
day:
all days legal for the month/leapyear
non-numeric characters in the 'day' field
0, 1 or more than 2 characters in the 'day' field
invalid delimiter (not 'T') between date and time
hour:
all legal values (00-23)
non-numeric characters in the 'hour' field
0, 1 or more than 2 characters in the 'hour' field
invalid delimiter (not ':') between the hour and min fields.
min:
all legal values (00-59)
non-numeric characters in the 'min' field
0, 1 or more than 2 characters in the 'min' field
invalid delimiter (not ':') between the min and sec fields.
sec:
all legal values (00-59)
non-numeric characters in the 'sec' field
0, 1 or more than 2 characters in the 'sec' field
invalid delimiter (not '.') between the 'sec' and 'usecs' fields
fracsec:
test with 0 digits (error)
test with 7 or more digits (error)
test between 1 and 6 digits (success)
timezone:
Legal values 'z' or 'Z' after sec or fracsec
Legal values +HH:MM or -HH:MM after sec or fracsec
Additional characters after 'z' or 'Z'
Additional characters after +HH:MM or -HH:MM
> Need the concept of wallclock time
> ----------------------------------
>
> Key: MYNEWT-4
> URL: https://issues.apache.org/jira/browse/MYNEWT-4
> Project: Mynewt
> Issue Type: New Feature
> Components: OS
> Reporter: Sterling Hughes
> Assignee: Neel Natu
> Fix For: v0_8_0_beta2
>
>
> Right now all time is relative, either using OS time (which is a 1ms tick), or cputime, which allows for high resolution timers.
> There needs to be a concept of "real" / "wallclock" time. Time should be kept in a 64-bit value, and both 64-bit and 32-bit APIs should be created to allow access to time.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)