Web hosting
Publié le 23 Décembre 2015 à 10h25 - 5121 vues

Php date, absolutely necessary for your blog update !

Whether you are a php developers or not, as long as you own a website, you must know that the php date () function is required during the update of the latter. This function will enable you to get the local time of your server based on the geographical situation of the latter.

She will then return a date as a string provided by the parameter "timestamp" in the format parameter "format" will be given. If there is no timestamp provided, this will be only the current date and time. Here the "timestamp" parameter is optional and the value of time ().

The parameter list

There are several dates constants can be used. This is so that DATE_RSS can perfectly replace the forming "D, d MYH: i: s".

In the format parameter, the characters: D, D, J, L, N, S, W, Z will be recognized as the day. The week will be symbolized by W. month by the F, m, M, n, t. The year by the L, O, Y, y. Time by the a, A, B, g, h, H, i, s, u. The time zone by e, I, O, P, T, Z. The date and the full hour c, r and U. If there is unrecognized characters, they will be printed as such. When Z is using gmdate (), it should always return 0.

The timestamp, meanwhile, is an integer optional parameter that defaults to the current local time if this parameter is not provided. Then it will be worth the value of time (). If a non-numeric value is used in this parameter, an error of level E_WARNING is emitted.

Normally, each call to the function date / time, a message will be sent E_NOTICE if the time zone is not valid. Otherwise, if you use System or the TZ environment variable, the message will be E_STRICT or E_WARNING.

Les publications similaires de "IT solutions"

  1. 3 Juil. 2017We use Laravel because it's the best PHP framework1428 vues
  2. 21 Mai 2017Explore PHP for developing dynamic web pages2071 vues
  3. 24 Fév. 2017How does a wordpress plugin to make your rental vacation site profitable?4665 vues
  4. 16 Fév. 2017Be sure to find the right developer1639 vues
  5. 12 Déc. 2016Develop your basket in order to keep your customer online1781 vues
  6. 4 Nov. 2016Stop working with losers, call the pro ruby ​​on rails1290 vues
  7. 27 Sept. 2016A ruby developers should know htlm and css both1191 vues
  8. 28 Août 2016Tips to migrate a website easily and successfully !1022 vues
  9. 12 Août 2016Will Magento fit your project?956 vues
  10. 18 Déc. 2015The tool to personalized your website AND objects !1319 vues
  11. 22 Nov. 2015Publish often to keep your rank !!1528 vues
  12. 14 Nov. 2015How to create a gif ??1361 vues
  13. 8 Nov. 2015The digital publishing the IT solutions for SEO1350 vues