Interesting site for Uruguayan children with different disciplinary content where each teacher can adapt to its courtly context. Click the image to enter.
The design is very simple and mimics the leaves of a school notebook, this simplicity is what makes it look like 2.0 notebook ideal for our students.
S i want to add or subtract one hour to the current date or any date, we have only operated with the date () function that PHP provides.
can use one of the two forms shown below should simply follow these steps:
/ / Get the current date:
$ date = time ();
/ / We subtract 3 hours to the current date:
$ hours = -3;
/ / convert hours to seconds and add:
$ date + = ($ hours * 60 * 60);
/ / We give the result desired format:
$ date = date ("Ymd H: i: s" $ Date);
is perhaps the most intuitive
echo date ("Ymd H: i: s", (strtotime ("+2 Hours Being able "))); substitute the value (+2) and Hours for what we want to add or subtract.
J avaScript rounded large numbers because the floating point processing, so they have a more precise tolerance limited. Normally in JavaScript, a value has 16 digits of precision.
If the intention is to operate with this kind of numbers, you can use any of the libraries there, created for this purpose and can be downloaded from the following links: