X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/f65244fc26208f942fbe5e5cdf5a6570dc493005..b8529b7920e55575e12fb6a9d01ebfcc82922fc0:/lib/functions.php?ds=sidebyside diff --git a/lib/functions.php b/lib/functions.php index 99c11ec..0bb51db 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -120,6 +120,21 @@ function jirafeau_human_size($octets) return round($o, 1) . $u[$p]; } +// Convert UTC timestamp to a datetime field +function jirafeau_get_datetimefield($timestamp) +{ + $content = '' + . strftime('%Y-%m-%d %H:%M', $timestamp) . ' (GMT)'; + return $content; +} + +function jirafeau_fatal_error($errorText, $cfg = array()) +{ + echo '
' . $errorText . '