Giter VIP home page Giter VIP logo

Comments (9)

kyao avatar kyao commented on September 3, 2024

For precision options are: year, month, day
Internally the options map to: 9, 10, 11

from t2wml.

g1eb avatar g1eb commented on September 3, 2024

Ke-Thia, just to clarify, do you mean year=9, month=10 and day=11?

from t2wml.

kyao avatar kyao commented on September 3, 2024

Yes, that is correct

from t2wml.

g1eb avatar g1eb commented on September 3, 2024

Sounds good, I'll add the dropdown menu with those options for the precision.
Do you have any pointers on where to get the options for the format dropdown menu?

from t2wml.

kyao avatar kyao commented on September 3, 2024

Let's use these date formats in the dropdown menu. The user should be able to enter other formats.

  • %Y (2021)
  • %Y-%m (2021-09)
  • %Y-%m-%d (2021-09-17)
  • %m/%d/%Y (09/17/2021)
  • %Y-%b-%d (2021-Sep-17)
  • %Y-%B-%d (2021-September-17)
  • %Y-%m-%dT%H:%M:%S (2021-09-17T14:00:00)

from t2wml.

kyao avatar kyao commented on September 3, 2024

For the precisions it looks like t2wml will automatically convert the stings to integers (year -> 9).
@devowit Is this correct?

from t2wml.

g1eb avatar g1eb commented on September 3, 2024

@devowit I'm getting an error when trying to save these date format values, do we need to wrap them in quotes?

errorCode: 500
errorDescription: "Error returned from get_causx_partial_csv: while scanning for the next token\nfound character '%' that cannot start any token\n  in \"<unicode string>\", line 15, column 23:\n                  format: %Y\n                          ^300"
errorTitle: "ValueError"

from t2wml.

devowit avatar devowit commented on September 3, 2024

yes, needs to be wrapped in quotes because internally everything gets converted to yaml and yaml treats % as a special character.....

from t2wml.

g1eb avatar g1eb commented on September 3, 2024

gotcha, that's what I did to get it to work, we can close this ticket I think

from t2wml.

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.