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