phpDocumentor sf-active
base_classes
[ class tree: sf-active ] [ index: sf-active ] [ all elements ]

Class: Time

Source Location: /classes/time.inc

Class Time

Class Overview

class representing a time

this class should contain all methods for manipulating and rendering times

Located in /classes/time.inc [line 9]



		
		
		
		

Properties

Methods

[ Top ]
Property Summary
int   $time  

[ Top ]
Method Summary
void   get_12hour()   returns the hour hour portion of the time object in 12 hour format
void   get_am()   returns "AM" or "PM" depending on if the time is in the AM or PM
void   get_display_time()   returns a formatted time in 12 hour format
void   get_hour()   returns the hour portion of the time object in 24 hour format
void   get_is_am()   returns true if the time is in the AM
void   get_minutes()   returms the minute portion of the time object
void   get_time()   retuns the time as a number between 0 and 24
void   set_time()   sets a time as a number between 0 and 24

[ Top ]
Properties
int   $time = 0 [line 14]

[ Top ]
Methods
get_12hour  [line 83]

  void get_12hour( )

returns the hour hour portion of the time object in 12 hour format



[ Top ]
get_am  [line 69]

  void get_am( )

returns "AM" or "PM" depending on if the time is in the AM or PM



[ Top ]
get_display_time  [line 99]

  void get_display_time( )

returns a formatted time in 12 hour format



[ Top ]
get_hour  [line 36]

  void get_hour( )

returns the hour portion of the time object in 24 hour format



[ Top ]
get_is_am  [line 52]

  void get_is_am( )

returns true if the time is in the AM



[ Top ]
get_minutes  [line 44]

  void get_minutes( )

returms the minute portion of the time object



[ Top ]
get_time  [line 28]

  void get_time( )

retuns the time as a number between 0 and 24



[ Top ]
set_time  [line 20]

  void set_time( int $newtime  )

sets a time as a number between 0 and 24

Parameters:
int   $newtime: 


[ Top ]

Documentation generated on Tue, 24 Jun 2008 01:03:59 -0700 by phpDocumentor 1.3.0RC3