mirror of
https://github.com/opensupports/opensupports.git
synced 2025-04-08 18:35:06 +02:00
15 lines
339 B
PHP
Executable File
15 lines
339 B
PHP
Executable File
<?php
|
|
class Date {
|
|
public static function getCurrentDate() {
|
|
return date('YmdHi');
|
|
}
|
|
|
|
public static function getPreviousDate($days = 1) {
|
|
return date('YmdHi', strtotime(" -$days day "));
|
|
}
|
|
|
|
public static function getNextDate($days = 1) {
|
|
return date('YmdHi', strtotime(" +$days day "));
|
|
}
|
|
}
|