Comments (6)
you can already do it
$period = new League\Period\Period('@1455052169', '@1455062169');
This is well explained in the documentation
from period.
Thank you! Where can I read about that in the docs?
from period.
Just follow the link a gave you :)
from period.
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.
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.
Thank you! Only lack of understanding from my part.
Thank you for your time and explanations!
from period.
Related Issues (20)
- Period::split() return Sequence HOT 1
- Is v3.x still stable and secure for PHP >=5.6 compatible environments (WP Plugins) HOT 1
- Can the lib handle periods without/ignoring year? HOT 3
- Number of (over)nights HOT 3
- Possible to determine the end of a duration in a sequence? HOT 2
- Navigation on docs page seems broken HOT 2
- Upgrade from 4.11 to 4.12 getDatePeriod returns DateTimeImmutable instead of Datepoints? HOT 2
- Quotation marks in Iso80000 range cause an exception HOT 2
- Missing tests HOT 4
- Add support for PHP8.2
- Type hinting `|Type[]` returns, when not a technical possibility HOT 2
- Sequence has multiple same period ,call the intersections func ,result is error HOT 5
- Adding the boundaryType to Period named constructors ?
- Period without end HOT 3
- Add ability to associate additional custom data to a Period HOT 12
- Create from ISO8601 string HOT 11
- Merge sequences. (Logical OR similar to subtract which is logical NOT) HOT 1
- Missing Period in Sequence intersections. HOT 5
- sequence subtraction bug HOT 1
- Merge Bakame/Period-Visualizer codebase to the Period repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from period.