Login   Register  
PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Konstantinos Tsatsarounos  >  PHP Date Helper  >  example  >  Download  
File: example
Role: Example script
Content type: text/plain
Description: example usage
Class: PHP Date Helper
Compute time values relative to the current date
Author: By
Last change:
Date: 1 year ago
Size: 756 bytes
 

Contents

Class file image Download
<?php

$d 
= new DateHelper"Europe/Athens" );
echo 
$d->get_current_dayTRUE ).'<br />'//Get current days name
echo $d->get_current_monthTRUE ).'<br />'//Get current months name
echo $d->get_current_year().'<br />';
echo 
$d->get_current_month_days(); 
echo 
$d->get_month_days).'<br />'//Get fifth month days
echo $d->get_date_before000).'<br />'//Get the date 5 days before
echo $d->get_date_after000).'<br />'//Get the date 5 days after
echo $d->get_months_days510).'<br />'//Get the number of days from May to October.
echo $d->get_months_days5false5).'<br />';  //Get the number of days from May to October.
echo $d->get_months_daysfalse52); //Get the number of days from March to May