Skip to content
Snippets Groups Projects
Commit d16c8d98 authored by Justus Dieckmann's avatar Justus Dieckmann
Browse files

PHPDoc

parent 4a5777c8
Branches
No related tags found
No related merge requests found
......@@ -147,6 +147,11 @@ class data_controller extends \core_customfield\data_controller {
}
}
/**
* returns a semesterid, given a datetime.
* @param DateTime $datetime the datetime
* @return int the corresponding semesterid
*/
public static function get_semester_for_datetime(DateTime $datetime): int {
$year = (int) $datetime->format('Y');
$month = (int) $datetime->format('m');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment