Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-445

Milliseconds or Nanoseconds?

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      <!---

      Questions: If you have questions about HOW TO use Realm, please ask on
      StackOverflow: http://stackoverflow.com/questions/ask?tags=realm
      We monitor the realm tag.

      Feature Request: Just fill in the first two sections below.

      Bugs: To help you as fast as possible with an issue please describe your issue
      and the steps you have taken to reproduce it in as much detail as possible.

      -->

      Goals

      I noticed the documentation for querying may be incomplete: https://github.com/realm/realm-js/blob/master/docs/tutorials/query-language.md#timestamps

      It mentions date formats including nanoseconds but every example i have seen is in milliseconds, most platforms don't have the precision for nanoseconds is this correct? Should i be formatting dates with nanoseconds or milliseconds?

      <!--- What are you trying to achieve? -->

      Expected Results

      Formatting a date value, need to understand is it milliseconds or nanoseconds realm wants?

      <!--- What did you expect to happen? -->

      Actual Results

      <!--- What happened instead? -->
      <!--- e.g. the stack trace of a crash -->

      Steps to Reproduce

      <!--- What are steps we can follow to reproduce this issue? -->

      Code Sample

      <!---
      Please provide a code sample or test case that highlights the issue.
      If relevant, include your model definitions.
      For larger code samples, links to external gists/repositories are preferred.
      Full projects that we can compile and run ourselves are ideal!
      -->

      Version of Realm and Tooling

      • Realm JS SDK Version: ?
      • Node or React Native: ?
      • Client OS & Version: ?
      • Which debugger for React Native: ?/None

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: