[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/station/ -> dayhour.inc (summary)

(no description)

File Size: 330 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 13 functions

  station_valid_hour()
  station_valid_day()
  station_day_name()
  station_minute_from_day_hour()
  station_minute_from_local_ts()
  station_day_from_minute()
  station_time_from_minute()
  theme_station_day()
  theme_station_dayhour()
  theme_station_dayhour_range()
  theme_station_hour_range()
  theme_station_hour_duration()
  theme_station_hour()

Functions
Functions that are not part of a class:

station_valid_hour($hour)   X-Ref
Turn a string into a valid hour.

param: $hour
return:

station_valid_day($day)   X-Ref
Get a numeric day of the week from a string or integer.

param: $day
return:

station_day_name($day = NULL)   X-Ref
Return an array of the names of the days of the week.

param: $day
return:

station_minute_from_day_hour($day, $hour)   X-Ref
Given a day and hour, compute the number of minutes since midnight Sunday.

param: $day
param: $hour
return:

station_minute_from_local_ts($local_timestamp = NULL)   X-Ref
Convert a local timestamp into an integer specifying minutes since midnight
on Sunday.

return:

station_day_from_minute($minute)   X-Ref
Day of the week from minutes.

param: $minutes
return:

station_time_from_minute($minutes)   X-Ref
Compute time information for a minute in the week.

param: $minutes
return:

theme_station_day($time)   X-Ref
Format minutes into a day string, e.g. "Sunday".

param: $time
return:

theme_station_dayhour($time)   X-Ref
Format minutes into a day hour string, e.g. "Sunday 11:15pm".

param: $time
return:

theme_station_dayhour_range($start, $finish)   X-Ref
Format a range of minutes into a day hour string, e.g.
"Sunday 11pm - Monday 1am".

param: $start
param: $finish
return:

theme_station_hour_range($start, $finish)   X-Ref
Format a range of minutes into a hour string, e.g. "1am-3pm".

param: $start
param: $finish
return:

theme_station_hour_duration($start, $finish)   X-Ref
Print the amount of time between start and finish.

param: $start
param: $finish
return:

theme_station_hour($time)   X-Ref
Format minutes into a hour string, e.g. "1am".

param: $time
return:



Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7