Giter VIP home page Giter VIP logo

Comments (4)

alexander-buerger-met-no avatar alexander-buerger-met-no commented on June 18, 2024

Hmm, I do not understand where this comes from. There are lots of matches when searching for +00:00 but basically none when searching for 0000:

$ grep -rn "seconds since.*0000" *
modules/F90/fimex.f90:484:  !! @param unit optional time-unite, defaults to 'seconds since 1970-01-01 +0000'
modules/F90/fimex.f90:494:    myUnit = "seconds since 1970-01-01 00:00:00 +0000";
share/etc/cdmGribReaderConfigEC_MAD.xml:28:            <attribute name="units" value="seconds since 2014-03-05 00:00:00 +0000" type="string"/>
Binary file … matches

Do you have any suggestion where the unit without timezone colon might come from?

from fimex.

heikoklein avatar heikoklein commented on June 18, 2024

Furthermore, udunits allows both +0000 and +00:00 for timezones:

You have: seconds since 2014-03-05 00:00:00 +0000
You want: seconds since 2014-03-05 00:00:00 +01:00
    1 seconds since 2014-03-05 00:00:00 +0000 = 3601 (seconds since 2014-03-05 00:00:00 +01:00)
    x/(seconds since 2014-03-05 00:00:00 +01:00) = (x/(seconds since 2014-03-05 00:00:00 +0000)) + 3600
You have: seconds since 2014-03-05 00:00:00 +0100    
You want: seconds since 2014-03-05 00:00:00 +0000
    1 seconds since 2014-03-05 00:00:00 +0100 = -3599 (seconds since 2014-03-05 00:00:00 +0000)
    x/(seconds since 2014-03-05 00:00:00 +0000) = (x/(seconds since 2014-03-05 00:00:00 +0100)) - 3600

from fimex.

atleanalytt avatar atleanalytt commented on June 18, 2024

I stand corrected on both of your comments. I had not investigated closely enough, sorry about that. I am using a library that is using CF time as standard, and it would not accept the +0000-string, so I assumed this was not accepted by udunits. It's the library that I'm using that's even more restrictive.
As for the output, I found this is a setting in the config files used, so it's not really an issue. I jumped the gun. Props for quick response!
Happy to close.

from fimex.

brucerd avatar brucerd commented on June 18, 2024

from fimex.

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.