m8t Posted April 2, 2010 Report Share Posted April 2, 2010 Nezināju kurā sadaļā šo likt, tādēļ šeit iemetu :) Tātad. Netīšām Ievadīju savā datubāzē, pie komentāriem datumu kā 0000. Izvadījums mani pārsteidza: 1970-01-01 02:00:00. Kādēl tieši tāds laiks uzrādās? Kāds liels vēsturisks notikums tad notika vai k-kas? :D Kods echo date('Y\-m\-d H\:i\:s', 0); Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted April 2, 2010 Report Share Posted April 2, 2010 http://en.wikipedia.org/wiki/Unix_time Quote Link to comment Share on other sites More sharing options...
m8t Posted April 2, 2010 Author Report Share Posted April 2, 2010 Tas bija ātri. Paldies! Quote Link to comment Share on other sites More sharing options...
vitao.web Posted April 2, 2010 Report Share Posted April 2, 2010 tiešām interesanti :) Quote Link to comment Share on other sites More sharing options...
Kemito Posted April 2, 2010 Report Share Posted April 2, 2010 time() Quote Link to comment Share on other sites More sharing options...
daGrevis Posted April 3, 2010 Report Share Posted April 3, 2010 Nu kā, no tā datuma sāka skaitīt UNIX laiku... :D Quote Link to comment Share on other sites More sharing options...
Kavacky Posted April 3, 2010 Report Share Posted April 3, 2010 BS, tajā brīdī Čaks Noriss izgudroja Internetu. Quote Link to comment Share on other sites More sharing options...
Mr.Key Posted April 4, 2010 Report Share Posted April 4, 2010 Pēc 10 gadiem laikam būs normāli prasīt, kāpēc šogad ir 366 dienas, bet parasti ir tikai 365... Quote Link to comment Share on other sites More sharing options...
Kavacky Posted April 6, 2010 Report Share Posted April 6, 2010 Tu smejies, vai? Neviens taču nemaz nezinās, cik gadā dienu! :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.