Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Orekit Orekit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 67
    • Issues 67
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Orekit
  • OrekitOrekit
  • Issues
  • #637
Closed
Open
Created Jan 28, 2020 by Piotr@Du

AbsoluteDate print method inconsistent with ISO ISO 8601

Hello, I am trying to write AbsoluteDate to file. I am using the “toString” method with various variations (defined zone, defined time scale) but cannot force it to write UTC date with “Z” at the end.

Here example:

AbsoluteDate date = new AbsoluteDate("2019-10-27T10:00:00.567Z",
                                         TimeScalesFactory.getUTC());
    System.out.println(date);
Output is: 2019-10-27T10:00:00.567

It is not complying with ISO 8601 norm, as :

If no UTC relation information is given with a time representation, the time is assumed to be in local time.

Is there a possibility to write the date correctly without converting to Java time?

Best regards, Piotr

Originally posted: https://forum.orekit.org/t/absolutedate-print-method-and-iso-8601/693

Edited Jan 28, 2020 by Piotr
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking