Skip to content

Instantly share code, notes, and snippets.

@jena-th
Created April 13, 2012 12:27
Show Gist options
  • Select an option

  • Save jena-th/2376604 to your computer and use it in GitHub Desktop.

Select an option

Save jena-th/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]);
@jena-th

jena-th commented May 3, 2012

Copy link
Copy Markdown
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