mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-10-24 03:33:09 +02:00
9 lines
187 B
TypeScript
9 lines
187 B
TypeScript
|
export function GetWiredTimeLocale(value: number): string
|
||
|
{
|
||
|
const time = Math.floor((value / 2));
|
||
|
|
||
|
if(!(value % 2)) return time.toString();
|
||
|
|
||
|
return (time + 0.5).toString();
|
||
|
}
|