GithubHelp home page GithubHelp logo

Comments (4)

junghao avatar junghao commented on September 17, 2024

Based on FDSN specification https://www.fdsn.org/webservices/FDSN-WS-Specifications-1.2.pdf:

All ​time​ values are specified in UTC and should use one particular variation of the ISO 8601 standard with the addition of sub-seconds:
YYYY-MM-DD​T​HH:MM:SS.ssssss

Where the fields are as specified in ISO 8601 and a “T” separates the date and time. The “​ssssss​” are the sub-seconds expressed between 1/10 of a second to microsecond resolution; they do not all need to be present.
Two shorter variations for specifying time should be supported:
YYYY-MM-DD​T​HH:MM:SS (implies a time of ​YYYY-MM-DD​T​HH​:​MM​:​SS​.000000)
where the sub-seconds are interpreted to be zeros and
YYYY-MM-DD (implies a time of ​YYYY-MM-DD​T00:00:00.000000)
where the hour, minute, second and sub-second are interpreted to be zeros.

However, the error message has extra .00000Z should be removed.

from fdsn.

elidana avatar elidana commented on September 17, 2024

the same request without Z works fine

https://service.geonet.org.nz/fdsnws/station/1/query?level=station&starttime=2021-10-06T00:00:00.000&endtime=2021-10-06T23:59:59.000

from fdsn.

ozym avatar ozym commented on September 17, 2024

This is something that's likely to be updated in the future, as per the recent changes to stationxml regarding Z

from fdsn.

vlauciani avatar vlauciani commented on September 17, 2024

Thanks @elidana , the request without Z works fine... but Z is part of ISO8601:

This is the only FDSN service where I got this error. I should update my script to remove the Z letter when the request will be submitted to the GeoNet FDSN; I'll do that, no problem.


Looking the FDSN-Spec (https://www.fdsn.org/webservices/FDSN-WS-Specifications-1.2.pdf), the misunderstand is the frase:

All ​time​ values are specified in UTC and should use one particular variation of the ISO 8601 standard with the addition of sub-seconds:
YYYY-MM-DD​T​HH:MM:SS.ssssss

which is in contrast with Wiki (https://en.wikipedia.org/wiki/ISO_8601):

[...] if no time zone information is provided with a time representation, it should be interpreted as local time
Screenshot 2023-06-05 at 10 04 57

Anyway, it's not a problem for me to fix this.

Thanks for the support.

from fdsn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.