Comments (4)
Please clarify what you want here: timestamps are already with time zone = UTC, but as mS since 1 Jan 1970. Are you really asking for the JSON in the file itself to be in string form, or do you want the display to be in that form?
I have to express my preference for the latter, since display of any time/date is a matter subject to localization, which changes not only the timezone but also the format of the display. And the localization facilities are all designed to operate with mS since 1 Jan 1970, not with string form.
from openxc-android.
I'm cool with Unix timestamps but I don't think we're always logging those in UTC, so if we fix that then all is good.
from openxc-android.
Hi, Chris-
As I contemplate closing this bug, in addition to the obvious questions to establish final clarity on the immediate issue, I have some workflow questions for you.
That is, when this openxc-android project was set up, 1) was it set up for doing the build with Maven (which I notice you prefer for at least some projects) or for building in the Eclipse IDE? 2) what .gitingore file are you using? 3) is it really deliberate that git is tracking .properties files? I usually put these in .gitignore.
As for the questions to establish final clarity on issue #33, I assume what it should do (and the bug can be considered closed once it is established that this is what it really does do even if there are no code changes) is always log the timestamp in mS since midnight 1 Jan 1970 UTC.
Sure, I know that with signals being delivered at approximately 10Hz, time in mills is overkill, but doing it in seconds throws away too much info, and any other unit would be non-standard in a way that helps no one -- unless it is required for backwards compatibility (e.g. do we have any utilities that rely on the current timestamp in seconds instead of milliseconds? -- AgingData.java does the timestamp in seconds:()
So the questions are: are the statements above correct? But I have another: which clock should it be deriving that timestamp from? Should it always be from the Android devices system clock (as is the case when System.currentTimeMillis i used)? Is there a clock on the VI or the CAN bus, and do we ever use it?
Oh, BTW: once I will update the issue in Github and go ahead and do whatever coding is needed, then close the issue.
On Aug 29, 2013, at 12:37 PM, Christopher Peplin <[email protected]mailto:[email protected]> wrote:
I'm cool with Unix timestamps but I don't think we're always logging those in UTC, so if we fix that then all is good.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/33#issuecomment-23517466.
from openxc-android.
I'm closing this as it actually is not a bug, just a shortcoming in the docs - Unix time is seconds since the epoch, defined in UTC.
from openxc-android.
Related Issues (20)
- java.lang.NullPointerException in StatusFragment.java:114
- java.lang.RuntimeException in Handler.java:197
- v6.1.4 and later doesn't make a good connection to USB or BT VI HOT 14
- java.lang.NullPointerException in GEL HOT 2
- java.lang.RuntimeException in ContextImpl.java:1808
- Support reading from embedded can HOT 1
- About Odometer Reading HOT 1
- Add new tab to allow sending control commands on-demand HOT 1
- Messages with multiple statuses (e.g. Door Status) are not showing in dashboard on enabler HOT 1
- Change timestamp for recorded trace from current time to recorded timestamp HOT 3
- Adding documentation to use a local copy of the OpenXC library HOT 2
- mKey being added to messages when recording a trace from enabler HOT 2
- New Updates to Bugsnag gradle plugin break the Gradle build process. HOT 1
- Large diagnostic response payloads cause JSON parsing error HOT 2
- Inner classes references leaks HOT 7
- Name of messages to be changed to match openxc-message-format HOT 4
- Value of the messages to be rounded off to 2 decimals HOT 2
- How to setResult large size in Android HOT 1
- VI connection Listener HOT 3
- Do you plan to migrate from jcenter? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openxc-android.