[ Index ]
 

Code source de phpMyVisites 2.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/core/include/ -> Date.class.php (sommaire)

(pas de description)

Poids: 219 lignes (4 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Date:: (17 méthodes):
  Date()
  getValidDate()
  loadInfo()
  getInfo()
  setTimestamp()
  setDate()
  getWeekDayNumber()
  get()
  getTimestamp()
  getDay()
  getMonth()
  getYear()
  getWeek()
  isPeriodFinished()
  isDayFinished()
  isMonthFinished()
  addDays()


Classe: Date  - X-Ref

Class generic used for all date in the format YYYY-MM-DD

Date($s_date)   X-Ref
Constructor

param: string $s_date

getValidDate($s_date)   X-Ref
Pas de description

loadInfo($s_date)   X-Ref
Pas de description

getInfo()   X-Ref
returns date info array

return: array

setTimestamp($ts)   X-Ref
Pas de description

setDate($s_date)   X-Ref
Pas de description

getWeekDayNumber()   X-Ref
Pas de description

get()   X-Ref
returns date YYYY-MM-DD

return: string

getTimestamp()   X-Ref
returns timestamp

return: string

getDay()   X-Ref
returns day

return: string

getMonth()   X-Ref
returns month

return: string

getYear()   X-Ref
returns year

return: string

getWeek()   X-Ref
returns ISO-8601 week number of year, weeks starting on Monday

return: string

isPeriodFinished($period)   X-Ref
returns true if the period of the object calling this method is finished

param: int $period
return: bool

isDayFinished()   X-Ref
returns true if day of period is older than today

return: bool

isMonthFinished()   X-Ref
returns true if month of period is older than current month

return: bool

addDays($nbDaysToAdd)   X-Ref
Adds x days to date
Works with daylight saving time




Généré le : Mon Nov 26 14:10:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics