GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  STRUCTS_TYPE_TIME (3)

NAME

structs_type_time - structs types for time values

CONTENTS

Library
Synopsis
Description
See Also
History
Authors

LIBRARY

PDEL Library (libpdel, -lpdel)

SYNOPSIS


.In sys/types.h
.In pdel/structs/structs.h
.In pdel/structs/type/time.h
.Vt extern const struct structs_type structs_type_time_gmt ;
.Vt extern const struct structs_type structs_type_time_local ;
.Vt extern const struct structs_type structs_type_time_iso8601 ;
.Vt extern const struct structs_type structs_type_time_abs ;
.Vt extern const struct structs_type structs_type_time_rel ;

DESCRIPTION

The structs(3) library includes several pre-defined types for time values. All of the types below describe a variable of type time_t, which holds the number of seconds since Jan 1, 1970 00:00:00 GMT.

The only difference between the types below is how the ASCII form of a time value is represented.

structs_type_time_gmt Displays the time in ctime(3) GMT format, e.g., "Mon Apr 22 19:50:00 GMT 2002".
structs_type_time_local Displays the time in ctime(3) local timezone format, but without the timezone explicitly shown, e.g., "Mon Apr 22 12:50:00 2002". Warning: This type should be avoided except where it is known that both the encoding and decoding time zones are the same.
structs_type_time_iso8601 Displays the time in ISO-8601 format, e.g., "20020422T19:50:00".
structs_type_time_abs Displays the time in seconds since Jan 1, 1970 GMT, e.g., "1019505000".
structs_type_time_rel Displays the time in seconds relative to now, e.g., "10413". Warning: The longer the time between ASCII encoding and decoding, the more erroneous the value becomes.

SEE ALSO

libpdel(3), structs(3), structs_type(3)

HISTORY

The PDEL library was developed at Packet Design, LLC. http://www.packetdesign.com/

AUTHORS


.An Archie Cobbs Aq archie@freebsd.org
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.