Base
[ class tree: Base ] [ index: Base ] [ all elements ]

Class: libTime

Source Location: /lib/time.php

Class Overview


This is a collection of functions used to print timezones in a friendly way. It used to translate to/from GMT times, but that's now handled by PHP, so this may be better put into libHTML


Methods



Class Details

[line 30]
This is a collection of functions used to print timezones in a friendly way. It used to translate to/from GMT times, but that's now handled by PHP, so this may be better put into libHTML



[ Top ]


Class Methods


static method gmtOffsetToText [line 116]

static string gmtOffsetToText( $gmtoffset, [bool[optional] $text = FALSE], int $gmtOffset)

Display a GMT offset in seconds, in text



Tags:

return:  Readable GMT offset
access:  public


Parameters:

int   $gmtOffset   GMT offset in seconds
bool[optional]   $text   If false the final :00 won't be printed, if true it will
   $gmtoffset  

[ Top ]

static method gmtTextToOffset [line 136]

static int gmtTextToOffset( int $gmtstring)

Convert a GMT text offset to a GMT offset in seconds



Tags:

return:  GMT offset in seconds
access:  public


Parameters:

int   $gmtstring   GMT offset in text

[ Top ]

static method remainingText [line 38]

static string remainingText( int $givenTime, [ $timeFrom = false])

Print the time remaining



Tags:

return:  Time remaining
access:  public


Parameters:

int   $givenTime   GMT UNIX timestamp
   $timeFrom  

[ Top ]

static method text [line 65]

static string text( [int[optional] $givenTime = 0])

Print the time in the viewing $User's timezone



Tags:

return:  Text-formatted time
access:  public


Parameters:

int[optional]   $givenTime   GMT UNIX timestamp, set to the current time if none given

[ Top ]


Documentation generated on Thu, 13 Nov 2008 18:16:39 +0900 by phpDocumentor 1.4.1