Skip to content

Instantly share code, notes, and snippets.

@kane-thornwyrd
Created April 13, 2012 12:27
Show Gist options
  • Save kane-thornwyrd/2376604 to your computer and use it in GitHub Desktop.
Save kane-thornwyrd/2376604 to your computer and use it in GitHub Desktop.
Récupérer le timestamp d'aujourd'hui 1nterval style ! XD
<?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]);
@kane-thornwyrd
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment