Penambahan beberapa fitur di Mahasiswa
This commit is contained in:
@@ -78,6 +78,12 @@ final class LegacyFormat
|
||||
return self::DAYS[(int) $day] ?? null;
|
||||
}
|
||||
|
||||
/** Mis. "Rp 4.500.000". */
|
||||
public static function rupiah(int|float $amount): string
|
||||
{
|
||||
return 'Rp '.number_format($amount, 0, ',', '.');
|
||||
}
|
||||
|
||||
/** "07:30:00" menjadi "07.30". */
|
||||
public static function time(?string $time): string
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user