Lines Matching full:time
152 ASN1_TIME_dup, ASN1_UTCTIME_dup, ASN1_GENERALIZEDTIME_dup \- ASN.1 Time functions
205 functions set the structure \fIs\fR to the time represented by the time_t
206 value \fIt\fR. If \fIs\fR is \s-1NULL\s0 a new time structure is allocated and returned.
209 functions set the time structure \fIs\fR to the time represented
210 by the time \fIoffset_day\fR and \fIoffset_sec\fR after the time_t value \fIt\fR.
212 time before \fIt\fR. The \fIoffset_sec\fR value can also exceed the number of
217 \&\fBASN1_GENERALIZEDTIME_set_string()\fR functions set the time structure \fIs\fR
218 to the time represented by string \fIstr\fR which must be in appropriate \s-1ASN.1\s0
219 time format (for example \s-1YYMMDDHHMMSSZ\s0 or \s-1YYYYMMDDHHMMSSZ\s0). If \fIs\fR is \s-1NULL\s0
223 \&\fBASN1_TIME_set_string_X509()\fR sets \fB\s-1ASN1_TIME\s0\fR structure \fIs\fR to the time
224 represented by string \fIstr\fR which must be in appropriate time format
226 \&\s-1YYYYMMDDHHMMSSZ\s0 (leap second is rejected), all other \s-1ASN.1\s0 time format
231 \&\fB\s-1ASN1_UTCTIME\s0\fR into a time value that can be used in a certificate. It
236 functions check the syntax of the time structure \fIs\fR.
239 functions print the time structure \fIs\fR to \s-1BIO\s0 \fIb\fR in human readable
242 If the time structure has invalid format it prints out \*(L"Bad time value\*(R" and
243 returns an error. The output for generalized time may include a fractional part
249 \&\fBASN1_TIME_to_tm()\fR converts the time \fIs\fR to the standard \fItm\fR structure.
250 If \fIs\fR is \s-1NULL,\s0 then the current time is converted. The output time is \s-1GMT.\s0
258 \&\fBASN1_TIME_diff()\fR sets \fI*pday\fR and \fI*psec\fR to the time difference between
259 \&\fIfrom\fR and \fIto\fR. If \fIto\fR represents a time later than \fIfrom\fR then
260 one or both (depending on the time difference) of \fI*pday\fR and \fI*psec\fR
261 will be positive. If \fIto\fR represents a time earlier than \fIfrom\fR then
263 represent the same time then \fI*pday\fR and \fI*psec\fR will both be zero.
266 in a day. If \fIfrom\fR or \fIto\fR is \s-1NULL\s0 the current time is used.
269 the two times represented by the time structure \fIs\fR and the time_t \fIt\fR.
272 time structures \fIa\fR and \fIb\fR.
279 duplicate the time structure \fIt\fR and return the duplicated result
283 The \fB\s-1ASN1_TIME\s0\fR structure corresponds to the \s-1ASN.1\s0 structure \fBTime\fR
284 defined in \s-1RFC5280\s0 et al. The time setting functions obey the rules outlined
313 specific time format. The functions starting with \fB\s-1ASN1_TIME\s0\fR will operate on
323 of an I/O error or invalid time format.
325 Use the \fBASN1_TIME_normalize()\fR function to normalize the time value before
331 a pointer to a time structure or \s-1NULL\s0 if an error occurred.
335 1 if the time value is successfully set and 0 otherwise.
343 return 1 if the time is successfully printed out and
344 0 if an I/O error occurred an error occurred (I/O error or invalid time format).
346 \&\fBASN1_TIME_to_tm()\fR returns 1 if the time is successfully parsed and 0 if an
347 error occurred (invalid time format).
350 passed-in time structure has invalid syntax, for example.
359 \&\fBASN1_TIME_to_generalizedtime()\fR returns a pointer to the appropriate time
363 pointer to a time structure or \s-1NULL\s0 if an error occurred.
366 Set a time structure to one hour after the current time and print it out:
369 \& #include <time.h>
376 \& t = time(NULL);
384 Determine if one time is later or sooner than the current time:
390 \& /* Invalid time format */