Coder Social home page Coder Social logo

Comments (11)

benfitzpatrick avatar benfitzpatrick commented on August 24, 2024

We should also copy over something like the translation table at https://github.com/cylc/cylc/wiki/ISO-8601

from cylc-doc.

hjoliver avatar hjoliver commented on August 24, 2024

Plus some examples relevant to climate modelling.

from cylc-doc.

oliver-sanders avatar oliver-sanders commented on August 24, 2024

Another format to document:

  • [[[<repetitions>/<date1>/<date2>]]]
    • e.g. [[[R5/^/^+P4D]]]

Another example to include:

  • [[[<repetitions>/<duration>/(^|$)(+|-)<duration>]]]
    • e.g. [[[R/PT6H/^+PT30H]]]

See cylc/cylc-flow#1601

from cylc-doc.

matthewrmshin avatar matthewrmshin commented on August 24, 2024

Note: time intervals and repeating intervals syntaxes are quite well explained by Wikipedia > ISO8601 > Time intervals.

from cylc-doc.

wxtim avatar wxtim commented on August 24, 2024

[[[<repetitions>/<date1>/<date2>]]] now covered:

https://cylc.github.io/cylc-doc/latest/html/user-guide/writing-workflows/scheduling.html#format-1-r-limit-datetime-datetime

from cylc-doc.

wxtim avatar wxtim commented on August 24, 2024

@oliver-sanders I'm not clear whether [[[<repetitions>/<duration>/(^|$)(+|-)<duration>]]] is format 4 in the documentation. If it is I think this is closable.

from cylc-doc.

oliver-sanders avatar oliver-sanders commented on August 24, 2024

I think the last bit differs:

<repetitions>/<duration>/(^|$)(+|-)<duration>
(^|$)(+|-)<duration>

E.G.

^+PT1H

Vs:

R[limit?]/[interval]/[datetime]
[datetime]

E.G:

2000-01-01

from cylc-doc.

MetRonnie avatar MetRonnie commented on August 24, 2024

^+PT1H is still a datetime (ICP + 1 hour). There is an example in the docs:

R1//+P0D # Run once at the final cycle point

from cylc-doc.

oliver-sanders avatar oliver-sanders commented on August 24, 2024

Yes, but it's a different (and non-iso8601) way of writing it which requires documentation.

from cylc-doc.

MetRonnie avatar MetRonnie commented on August 24, 2024

I think there is already ample explanation of ^+PT1H syntax? https://cylc.github.io/cylc-doc/nightly/html/user-guide/writing-workflows/scheduling.html#referencing-the-initial-and-final-cycle-points

from cylc-doc.

oliver-sanders avatar oliver-sanders commented on August 24, 2024

That doesn't cover this particular example.

We could probably just do with a clarification of where this extension to ISO8601 is valid and slip a couple more examples in.

from cylc-doc.

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.