rudza Posted August 22, 2010 Report Share Posted August 22, 2010 Kā izvadīt laiku kādu šobrīd rāda datora pulkstenis.? Ir kādi varianti.? Quote Link to comment Share on other sites More sharing options...
Ome Posted August 22, 2010 Report Share Posted August 22, 2010 Ja vēlies, lai rāda servera laiku, date('H:i:s'), ja klienta datora laiku - izmanto JS. Quote Link to comment Share on other sites More sharing options...
rudza Posted August 22, 2010 Author Report Share Posted August 22, 2010 Ja vēlies, lai rāda servera laiku, date('H:i:s'), ja klienta datora laiku - izmanto JS. Tātad tikai JS to var paveikt.? Skaidrs. Bet kāpēc ar PC laiku un servera laiku ir tāda atšķirība.? Quote Link to comment Share on other sites More sharing options...
Ome Posted August 22, 2010 Report Share Posted August 22, 2010 (edited) Nē, servera pusē to var paveikt PHP, otrā pusē - JS. Kāpēc atšķirība? Tāpēc, ka tie ir 2 dažādi datori, kas var atrasties dažādās laika joslās, neprecīzu iestatītu laiku (parasti klienta datoram) utt. Edited August 22, 2010 by Ome 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.