File: sample.php

Recommend this page to a friend!
  Classes of Ingvar Stepanyan  >  Localized Date/Time Strings  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Simple example
Class: Localized Date/Time Strings
Manipulate time and dates based on a given locale
Author: By
Last change: Fixed sample
Date: 11 years ago
Size: 382 bytes


Class file image Download
('Content-Type: text/plain');

$LocalTime = new LocalTime('deu');
'heute' => 'today',
'morgen' => 'tomorrow'
// , ...
date('l', $LocalTime->strtotime('+1 Montag 15.10.2010')), PHP_EOL; // outputs "Monday"
echo $LocalTime->date('l', strtotime('15.10.2010')), PHP_EOL; // outputs "Freitag"

For more information send a message to info at phpclasses dot org.