summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/prtimeparamfn.rst
blob: 1efd6a5895abbeb734dc0a4990b49cba08370239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PRTimeParamFn
=============

This type defines a callback function to calculate and return the time
parameter offsets from a calendar time object in GMT.


Syntax
------

.. code::

    #include <prtime.h>

    typedef PRTimeParameters (PR_CALLBACK_DECL *PRTimeParamFn)
       (const PRExplodedTime *gmt);


Description
-----------

The type :ref:`PRTimeParamFn` represents a callback function that, when
given a time instant in GMT, returns the time zone information (offset
from GMT and DST offset) at that time instant.