FT3 Posted February 25, 2012 Report Share Posted February 25, 2012 Sveiki , ir neliels jautajums. <?php $now = time(); $day = '??'; $expire = $now + $day; ?> cik man jaieraksta $day lai sanaktu 24h , time() formata ? Iepriekš paldies :) Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted February 25, 2012 Report Share Posted February 25, 2012 (edited) Matemātika (+ Fizika?) FTW Edited February 25, 2012 by rATRIJS Quote Link to comment Share on other sites More sharing options...
briedis Posted February 25, 2012 Report Share Posted February 25, 2012 Nu bītītmatos, sākumskolas matemātika! Bet, man patīk darīt šādi :p strtotime('+5 days'); šis ir labāks variants, jo tiek galā arī ar DST maiņām. 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.