[ create a new paste ] login | about

Link: http://codepad.org/uSYiIu5w    [ raw code | output | fork ]

PHP, pasted on Jun 23:
1
2
3
4
5
6
7
8
<?php

// Set timezone to something that has DST
date_default_timezone_set('Europe/Helsinki');

// 2010-03-29 is the first day in DST
echo date("Y-m-d H:i\n", mktime(0, 0, 0, 3, 29, 2010) - 86400);
echo date("Y-m-d H:i", strtotime('-1 day', mktime(0, 0, 0, 3, 29, 2010)));


Output:
1
2
2010-03-27 23:00
2010-03-28 00:00


Create a new paste based on this one


Comments: