blob: 54a36de341185db16798440203e4acdfb166b1e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
namespace App\Libraries;
use App\Libraries\TemplateFunction;
class TemplateFunction {
private static function formatFloat($float, $size = 2) {
return number_format($float, $size, ",", ".");
}
public static function fF($float, $format = "") {
$f = $float;
if ( 0 == ($f - floor($f))) {
$f = intval($f);
} else {
$f = TemplateFunction::formatFloat($float);
}
return $f;
}
public static function T($timestamp) {
return gmdate("d.m.Y.", $timestamp);
}
}
|