blondine Posted May 18, 2010 Report Share Posted May 18, 2010 (edited) nevaru tikt skaidribaa ar datuma formatiem un to padosana.. Edited May 26, 2010 by blondine Quote Link to comment Share on other sites More sharing options...
briedis Posted May 18, 2010 Report Share Posted May 18, 2010 (edited) Nepētīšu tavu(?) koda blāķi, bet pilnībā vajadzētu pietikt ar funkcijām time, date, mktime... varbūt vēl strtotime. Nu tik aidā uz php manuāli... Edited May 18, 2010 by briedis Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted May 19, 2010 Report Share Posted May 19, 2010 Un kas tieši nenotiek kā vajag? Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted May 19, 2010 Report Share Posted May 19, 2010 Neredzu tavā kodā, ka tiek izsaukts ate() Quote Link to comment Share on other sites More sharing options...
briedis Posted May 19, 2010 Report Share Posted May 19, 2010 Neredzu tavā kodā, ka tiek izsaukts ate() Nu ja gan jau domāts date() date("datuma formāts", unixtimestamps); Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted May 19, 2010 Report Share Posted May 19, 2010 Zini... Arī funkcijas date() tur nav. ;) Ir gan :) Quote Link to comment Share on other sites More sharing options...
briedis Posted May 19, 2010 Report Share Posted May 19, 2010 Kāpēc neglabāt timestampā un pie izvades formatēt? (funkcija mktime()) Quote Link to comment Share on other sites More sharing options...
briedis Posted May 19, 2010 Report Share Posted May 19, 2010 drisi vien, ka taa bus jadara.=p Tas būtu arī prātīgākais, ko varētu darīt... Quote Link to comment Share on other sites More sharing options...
briedis Posted May 19, 2010 Report Share Posted May 19, 2010 Tev tur kļūda, ieteiktu sīkāk papētīt mktime parametrus (precīzāk, secību). Quote Link to comment Share on other sites More sharing options...
blondine Posted May 19, 2010 Author Report Share Posted May 19, 2010 (edited) tad vel te tads maz labojums =p $date= mktime(date("H"), date("i"), date("s"), $_POST['month'],$_POST['day'],$_POST['year']); $date=date("d.m.Y-H.i.s", $date); $this->fileName = $this->dir.$this->author."_".$date.".txt"; thx =) ... m.d.y Edited May 20, 2010 by blondine 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.