Created
April 13, 2012 12:27
-
-
Save kane-thornwyrd/2376604 to your computer and use it in GitHub Desktop.
Récupérer le timestamp d'aujourd'hui 1nterval style ! XD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$current_date = date('Y-m-d'); | |
$split_date_now = explode('-', $current_date); | |
$current_timestamp = mktime(0, 0, 0, $split_date_now[1], $split_date_now[2], | |
$split_date_now[0]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Je précise que c'est un morceau de code existant reflétant bien la dette technique d'un projet que j'ai repris et mené à bien.