nitro-react/src/components/wired/common/GetWiredTimeLocale.ts
2022-01-14 00:21:10 -05:00

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();
}