Web hosting
23 Décembre 2015 à 15h25 - 8014 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.

IT solutions

  1. 9 Déc. 2019The significant difference between PHP development and PHP web development3572 vues
  2. 3 Juil. 2017We use Laravel because it's the best PHP framework7406 vues
  3. 21 Mai 2017Explore PHP for developing dynamic web pages8204 vues
  4. 24 Fév. 2017How does a wordpress plugin to make your rental vacation site profitable?16683 vues
  5. 16 Fév. 2017Be sure to find the right developer5280 vues
  6. 12 Déc. 2016Develop your basket in order to keep your customer online4852 vues
  7. 5 Nov. 2016Stop working with losers, call the pro ruby ​​on rails3281 vues
  8. 27 Sept. 2016A ruby developers should know htlm and css both3149 vues
  9. 28 Août 2016Tips to migrate a website easily and successfully !2888 vues
  10. 12 Août 2016Will Magento fit your project?2893 vues
  11. 18 Déc. 2015The tool to personalized your website AND objects !3121 vues
  12. 22 Nov. 2015Publish often to keep your rank !!3288 vues
  13. 14 Nov. 2015How to create a gif ??3365 vues