Hi Brent, hi list,



>If you just run your command in the shell, you'll see that you 

>get an operation not permitted error. Using the -r switch you

>can provide the seconds since Epoch to just display a 'date'

>you specify.

>For instance:

>date -r 978400000 +%a

>Returns 'Mon'



Ok, that's right!

But I also notice this strange behaviour on Mac:



date -r 0492900000 +%a   returns 'Wed'...ok

date -r 0492800000 +%a   returns 'Tue'...ok

date -r 0492700000 +%a   returns 'Mon'...ok

date -r 0492600000 +%a   returns 'Sat'...ok

date -r 0492500000 +%a   returns 'Sun'...ok

date -r 0492400000 +%a   returns 'Fri'...no!



I try for a test:



date -r 0492411111 +%a   returns 'Sat'...ok



(11111 are hhmms from the Epoch, is it true?)

but:



date -r 0492311111 +%a   returns 'Fri'...ok

date -r 0492211111 +%a   returns 'Wed'...no!



The behaviour is the same via Bash and via PHP script

that invokes the shell...is it a my error or a X server

bug?



Regards, thanks!

Ciao

Francesco



 

-----------------------------------------------------------
Leggi la tua email con il tuo cellulare! Grazie a I.Box puoi
leggere la tua email di superEva da SMS e dalla segreteria!
http://webmail.supereva.it/ibox/
-----------------------------------------------------------

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to