TimeUnits

Summary

The TimeUnits module provides human-readable formats for converting values into milliseconds.

Description

The TimeUnits module provides human-readable formats for converting values into milliseconds.

Examples

Basic Usage
1
2
3
4
import System.Time;
 
double timeout = TimeUnits.minutes(10);
Console.log(timeout);

Members

  • days

    Converts the specified day value into milliseconds.

  • hours

    Converts the specified hour value into milliseconds.

  • milliseconds

    Returns the specified milliseconds value.

    This method returns the argument provided. Therefore, its main utility is for code readability.

  • minutes

    Converts the specified minutes value into milliseconds.

  • seconds

    Converts the specified seconds value into milliseconds.

Share

HTML | BBCode | Direct Link