Stud.IP  jlu_3.3 Revision
calendar_functions.inc.php File Reference

Namespaces

namespace  studip_core
 

Functions

 wday ($tmstamp="", $mode="LONG", $day_german="")
 
 ldate ($tmstamp)
 
 holiday ($tmstamp, $mod="")
 
 check_date ($month, $day, $year, $hour=0, $min=0)
 
 day_diff ($ts_1, $ts_2)
 
 get_day_name ($day)
 
 check_singledate ( $day, $month, $year, $start_hour, $start_minute, $end_hour, $end_minute)
 

Function Documentation

◆ check_date()

check_date (   $month,
  $day,
  $year,
  $hour = 0,
  $min = 0 
)
Here is the caller graph for this function:

◆ check_singledate()

check_singledate (   $day,
  $month,
  $year,
  $start_hour,
  $start_minute,
  $end_hour,
  $end_minute 
)

checks values that shall become a single date with start- and endtime

Parameters
string$day
string$month
string$year
string$start_hour
string$start_minute
string$end_hour
string$end_minute
Returns
bool true if date is valid, false otherwise
Here is the call graph for this function:
Here is the caller graph for this function:

◆ day_diff()

day_diff (   $ts_1,
  $ts_2 
)

◆ get_day_name()

get_day_name (   $day)

Useful function to return the name of the n-th day. Note that the first day's is 1 not 0. Thus "monday" is "1" and "sunday" is "7"!

Parameters
intthe index of the day
Returns
string the name of the day

◆ holiday()

holiday (   $tmstamp,
  $mod = "" 
)

◆ ldate()

ldate (   $tmstamp)
Here is the call graph for this function:

◆ wday()

wday (   $tmstamp = "",
  $mode = "LONG",
  $day_german = "" 
)
Here is the call graph for this function:
Here is the caller graph for this function: