tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

prtime.rst (797B)


      1 PRTime
      2 ======
      3 
      4 A representation of absolute times.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12    #include <prtime.h>
     13 
     14    typedef PRInt64 PRTime;
     15 
     16 
     17 Description
     18 -----------
     19 
     20 This type is a 64-bit integer representing the number of microseconds
     21 since the NSPR epoch, midnight (00:00:00) 1 January 1970 Coordinated
     22 Universal Time (UTC). A time after the epoch has a positive value, and a
     23 time before the epoch has a negative value.
     24 
     25 In NSPR, we use the more familiar term Greenwich Mean Time (GMT) in
     26 place of UTC. Although UTC and GMT are not exactly the same in their
     27 precise definitions, they can generally be treated as if they were.
     28 
     29 .. note::
     30 
     31   **Note:** Keep in mind that while :ref:`PRTime` stores times in
     32   microseconds since epoch, JavaScript date objects store times in
     33   milliseconds since epoch.