Theia API Documentation v1.77.0
    Preparing search index...
    • Formats a timestamp as a human-readable relative time string (e.g., "2 hours ago").

      The largest unit that fits into the elapsed time is used and the value is rounded down so that it never crosses into the next larger unit. Timestamps less than a second away render as "0 seconds ago", future ones as "in ...".

      Parameters

      • timestamp: number

        The timestamp in milliseconds

      Returns string