Mikijs Posted January 20, 2009 Report Share Posted January 20, 2009 Sveiki Tātad esmu ieguvis vērtibu "1228209980" no funkcijas "time();" kā lai pareizi izveidoju "gadu" ? Sākumā domāju ka jālieto šādi date("Y",mktime(1228209980)); bet pretiim protams ka saņēmu 1970. bet vajadzēja būt 2008. Paldies par jebkādu palīdzību. Link to comment Share on other sites More sharing options...
NiTrino Posted January 20, 2009 Report Share Posted January 20, 2009 $time = time(); date("Y",$time); Link to comment Share on other sites More sharing options...
Klez Posted January 20, 2009 Report Share Posted January 20, 2009 (edited) date("Y",1228209980); nemeeginaaji ? http://lv.php.net/date vispaar jau nevajadzeeja atbildi rakstiit; paskaties kaa straadaa mktime Edited January 20, 2009 by Klez Link to comment Share on other sites More sharing options...
Mikijs Posted January 20, 2009 Author Report Share Posted January 20, 2009 mja ta vinsh i.. paldies ;) .. bik apjuku, bet i ok Link to comment Share on other sites More sharing options...
Recommended Posts