mirror of
https://github.com/friendica/friendica
synced 2024-12-23 13:20:21 +00:00
Remove include/datetime.php
This commit is contained in:
parent
f020292408
commit
d037300d3b
1 changed files with 0 additions and 49 deletions
|
@ -1,49 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file include/datetime.php
|
||||
* @brief Some functions for date and time related tasks.
|
||||
*/
|
||||
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Util\Temporal;
|
||||
|
||||
function dob($dob) {
|
||||
return Temporal::getDateofBirthField($dob);
|
||||
}
|
||||
|
||||
function datesel($min, $max, $default, $id = 'datepicker') {
|
||||
return Temporal::getDateField($min, $max, $default, $id);
|
||||
}
|
||||
|
||||
function timesel($h, $m, $id = 'timepicker') {
|
||||
return Temporal::getTimeField($h, $m, $id);
|
||||
}
|
||||
|
||||
function datetimesel($min, $max, $default, $label, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '', $required = false) {
|
||||
return Temporal::getDateTimeField($min, $max, $default, $label, $id, $pickdate, $picktime, $minfrom, $maxfrom, $required);
|
||||
}
|
||||
|
||||
function relative_date($posted_date, $format = null) {
|
||||
return Temporal::getRelativeDate($posted_date, $format);
|
||||
}
|
||||
|
||||
function age($dob, $owner_tz = '', $viewer_tz = '') {
|
||||
return Temporal::getAgeByTimezone($dob, $owner_tz, $viewer_tz);
|
||||
}
|
||||
|
||||
function get_dim($y, $m) {
|
||||
return Temporal::getDaysInMonth($y, $m);
|
||||
}
|
||||
|
||||
function get_first_dim($y,$m) {
|
||||
return Temporal::getFirstDayInMonth($y, $m);
|
||||
}
|
||||
|
||||
function cal($y = 0, $m = 0, $links = null, $class = '')
|
||||
{
|
||||
return Temporal::getCalendarTable($y, $m, $links, $class);
|
||||
}
|
||||
|
||||
function update_contact_birthdays() {
|
||||
return Contact::updateBirthdays();
|
||||
}
|
Loading…
Reference in a new issue