In PHP puoi usare le date in formato timestamp che corrisponde al numero di secondi passati dall'1/1/1970. Con queste puoi fare calcoli e test come vuoi. Ad esempio per aggiungere 48 ore basta aggiungere 486060.
Il formato timestamp è quello tornato da time() e da mktime(), poi lo puoi formattare con date().
- Home
- Categorie
- Coding e Sistemistica
- Coding
Coding
Discussioni: 17893 Post: 86740
PHP, HTML, CSS, MySQL, Javascript, Python e tutto il resto
Moderatori
Hashtag
Coding
-
TopicPost