PHP Classes

File: libs/Twig/test/Twig/Tests/Fixtures/filters/date_modify.test

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/test/Twig/Tests/Fixtures/filters/date_modify.test   Download  
File: libs/Twig/test/Twig/Tests/Fixtures/filters/date_modify.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 343 bytes
 

Contents

Class file image Download
--TEST-- "date_modify" filter --TEMPLATE-- {{ date1|date_modify('-1day')|date('Y-m-d H:i:s') }} {{ date2|date_modify('-1day')|date('Y-m-d H:i:s') }} --DATA-- date_default_timezone_set('UTC'); return array( 'date1' => '2010-10-04 13:45', 'date2' => new DateTime('2010-10-04 13:45'), ) --EXPECT-- 2010-10-03 13:45:00 2010-10-03 13:45:00