Hex Core JS
    Preparing search index...

    Function toTime

    • Returns the time of the given date expressed in the given unit.

      Parameters

      • precision: TimePrecision

        The unit of time to return (e.g. "hour" returns time in hours).

      • date: Date = ...

        The date of which to get the time (default is current date).

      Returns number