Class src_tools_TIME

Description

Stellt verschiedene Funktionen zum Umrechen der SQL-Zeit zur Verfügung

  • version: 1.0
  • since: 04.2005
  • author: kay koch
  • access: public

Located in /src/tools/class.TIME.php (line 37)


	
			
Method Summary
static date addDays2SQL (date $sqlTime, [int $days = 0])
static string dayNr2dayName (int $weekday)
static void formatDate ( $d,  $m,  $y)
static void formatHour ( $h, [ $add = 0])
static string getDayOL ([int $vDay = ""], [ $maxDay = 31])
static void getFeiertage ()
static string getHourOL ([int $hour = ""], [ $startHour = "01:00"], [ $endHour = "24:00"])
static string getMonthOL ([int $month = ""])
static string getWeekOL ([int $weekday = ""])
static float next_timer (int $start, string $event)
static string sqlT2realT (string $sqlTime, [string $format = "%a, %d. %B %Y"])
static int start_timer (string $event)
static void time2longTime ( $stunde)
static void time2shortTime ( $stunde)
static array yearDay2SQL (void $dayInYear)
Methods
static method addDays2SQL (line 284)

addiert zu einem SQL-Datum Tage hinzu und liefert das Ergebnis zurück

static date addDays2SQL (date $sqlTime, int $days)
  • date $sqlTime
  • int $days
static method dayNr2dayName (line 165)

wandelt den Wochentag (zahl) in einen Wochentag (Name) um

static string dayNr2dayName (int $weekday)
  • int $weekday
static method formatDate (line 307)
  • access: public
static void formatDate ( $d,  $m,  $y)
  • $d
  • $m
  • $y
static method formatHour (line 310)
  • access: public
static void formatHour ( $h,  $add)
  • $h
  • $add
static method getDayOL (line 229)

liefert ein OptionList mit den Tagen eines Monats aus

static string getDayOL ([int $vDay = ""], [ $maxDay = 31])
  • int $vDay
  • $maxDay
static method getFeiertage (line 333)

getFeiertage

Karfreitag (beweglicher Feiertag; 2 Tage vor Ostern) Ostersonntag Ostermontag (beweglicher Feiertag; 1 Tag nach Ostern) Maifeiertag (fester Feiertag am 1. Mai) Christi Himmelfahrt (beweglicher Feiertag; 39 Tage nach Ostern) Pfingstsonntag (beweglicher Feiertag; 49 Tage nach Ostern) Pfingstmontag (beweglicher Feiertag; 50 Tage nach Ostern) Fronleichnam (beweglicher Feiertag; 60 Tage nach Ostern) Mariä Himmelfahrt (fester Feiertag am 15. August) Tag der deutschen Einheit(fester Feiertag am 3. Oktober)

@ author kaykoch @ access public @ since 1.0 - 20.03 .2007 @ return array Feld mit Feiertagen

  • access: public
static void getFeiertage ()
static method getHourOL (line 251)

liefert ein OptionList mit den Zeiten eines Tages aus

static string getHourOL ([int $hour = ""], [ $startHour = "01:00"], [ $endHour = "24:00"])
  • int $hour
  • $startHour
  • $endHour
static method getMonthOL (line 207)

liefert ein OptionList mit den Monaten aus

static string getMonthOL ([int $month = ""])
  • int $month
static method getWeekOL (line 184)

liefert ein OptionList mit den Wochentagen aus

static string getWeekOL ([int $weekday = ""])
  • int $weekday
static method next_timer (line 139)

gibt die Laufzeit seit start_timer, bzw. sich selbst aus

static float next_timer (int $start, string $event)
  • int $start
  • string $event
static method sqlT2realT (line 66)

Wandelt SQL-Zeitangaben in gewünschte Formatierungen um

static string sqlT2realT (string $sqlTime, [string $format = "%a, %d. %B %Y"])
  • string $sqlTime
  • string $format
static method start_timer (line 116)

startet einen Timer zur überprüfung der Laufzeit

static int start_timer (string $event)
  • string $event
static method time2longTime (line 295)
  • access: public
static void time2longTime ( $stunde)
  • $stunde
static method time2shortTime (line 304)
  • access: public
static void time2shortTime ( $stunde)
  • $stunde
static method yearDay2SQL (line 94)

liefert aus einem dem laufenden Tag im Jahr:

[0]: Tag im SQL-Format [1]: Wochentag (Mo=1,Di=2...So=7)

static array yearDay2SQL (void $dayInYear)
  • void $dayInYear

Documentation generated on Sat, 24 Mar 2007 10:00:10 +0100 by phpDocumentor 1.3.1