pkix_pl_date.h (1096B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 /* 5 * pkix_pl_date.h 6 * 7 * Date Object Definitions 8 * 9 */ 10 11 #ifndef _PKIX_PL_DATE_H 12 #define _PKIX_PL_DATE_H 13 14 #include "pkix_pl_common.h" 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 struct PKIX_PL_DateStruct{ 21 PRTime nssTime; 22 }; 23 24 /* see source file for function documentation */ 25 26 PKIX_Error *pkix_pl_Date_ToString_Helper( 27 SECItem *nssTime, 28 PKIX_PL_String **pString, 29 void *plContext); 30 31 PKIX_Error *pkix_pl_Date_RegisterSelf(void *plContext); 32 33 PKIX_Error * 34 pkix_pl_Date_GetPRTime( 35 PKIX_PL_Date *date, 36 PRTime *pPRTime, 37 void *plContext); 38 39 PKIX_Error * 40 pkix_pl_Date_CreateFromPRTime( 41 PRTime prtime, 42 PKIX_PL_Date **pDate, 43 void *plContext); 44 45 PKIX_Error * 46 PKIX_PL_Date_CreateFromPRTime( 47 PRTime prtime, 48 PKIX_PL_Date **pDate, 49 void *plContext); 50 51 #ifdef __cplusplus 52 } 53 #endif 54 55 #endif /* _PKIX_PL_DATE_H */