tor-browser

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

pr_explodetime.rst (872B)


      1 PR_ExplodeTime
      2 ==============
      3 
      4 Converts an absolute time to a clock/calendar time.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12   #include <prtime.h>
     13 
     14   void PR_ExplodeTime(
     15      PRTime usecs,
     16      PRTimeParamFn params,
     17      PRExplodedTime *exploded);
     18 
     19 
     20 Parameters
     21 ~~~~~~~~~~
     22 
     23 The function has these parameters:
     24 
     25 ``usecs``
     26   An absolute time in the :ref:`PRTime` format.
     27 ``params``
     28   A time parameter callback function.
     29 ``exploded``
     30   A pointer to a location where the converted time can be stored. This
     31   location must be preallocated by the caller.
     32 
     33 
     34 Returns
     35 ~~~~~~~
     36 
     37 Nothing; the buffer pointed to by ``exploded`` is filled with the
     38 exploded time.
     39 
     40 
     41 Description
     42 -----------
     43 
     44 This function converts the specified absolute time to a clock/calendar
     45 time in the specified time zone. Upon return, the location pointed to by
     46 the exploded parameter contains the converted time value.