GithubHelp home page GithubHelp logo

Comments (6)

nyamsprod avatar nyamsprod commented on May 12, 2024

you can already do it

$period = new League\Period\Period('@1455052169', '@1455062169');

This is well explained in the documentation

from period.

blomdahldaniel avatar blomdahldaniel commented on May 12, 2024

Thank you! Where can I read about that in the docs?

from period.

nyamsprod avatar nyamsprod commented on May 12, 2024

Just follow the link a gave you :)

from period.

blomdahldaniel avatar blomdahldaniel commented on May 12, 2024

omg.. Responded from my phone and did not see that link.

Any how, the docs miss this info. It should be an example under the heading Instantiation. So the syntax with the @ symbol should be precent and explained.. And when reading the fact that the

integer interpreted as the interval expressed in seconds.

still should be entered expressed as a string when creating the period is just weird, especially since there is no explanation or example for this in the docs.

from period.

nyamsprod avatar nyamsprod commented on May 12, 2024

So the syntax with the @ symbol should be precent and explained.

Why ? This is not an exotic syntax it is the syntax used by DateTime::construct

integer interpreted as the interval expressed in seconds.

This is only available for duration so I don't see any possible conflict, one syntax refers to a Timestamp the other to a duration.

from period.

blomdahldaniel avatar blomdahldaniel commented on May 12, 2024

Thank you! Only lack of understanding from my part.
Thank you for your time and explanations!

from period.

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.