blob: 6d26807b8b8382b97f9ad6a8ddbb1a218b3cfab3 [file] [log] [blame]
vlmfa67ddc2004-06-03 03:38:44 +00001/*-
2 * Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
4 */
5#ifndef _UTCTime_H_
6#define _UTCTime_H_
7
vlmfa67ddc2004-06-03 03:38:44 +00008#include <OCTET_STRING.h>
9
vlmd1579582004-09-24 21:00:50 +000010typedef OCTET_STRING_t UTCTime_t; /* Implemented via OCTET STRING */
vlmfa67ddc2004-06-03 03:38:44 +000011
vlmef6355b2004-09-29 13:26:15 +000012extern asn_TYPE_descriptor_t asn_DEF_UTCTime;
vlmfa67ddc2004-06-03 03:38:44 +000013
vlmfa67ddc2004-06-03 03:38:44 +000014asn_struct_print_f UTCTime_print;
vlm39ba4c42004-09-22 16:06:28 +000015asn_constr_check_f UTCTime_constraint;
16xer_type_encoder_f UTCTime_encode_xer;
vlmfa67ddc2004-06-03 03:38:44 +000017
18/***********************
19 * Some handy helpers. *
20 ***********************/
21
vlmfa67ddc2004-06-03 03:38:44 +000022struct tm; /* <time.h> */
vlmd0c608e2004-08-07 03:51:43 +000023
24/* See asn_GT2time() in GeneralizedTime.h */
25time_t asn_UT2time(const UTCTime_t *, struct tm *_optional_tm4fill, int as_gmt);
26
27/* See asn_time2GT() in GeneralizedTime.h */
28UTCTime_t *asn_time2UT(UTCTime_t *__opt_ut, const struct tm *, int force_gmt);
vlmfa67ddc2004-06-03 03:38:44 +000029
30#endif /* _UTCTime_H_ */