Home
Highly Reusable Software By activity User Interface Text Strings Math Processing
Stored Data
Communications
Hard World File System
|
#License - #Source code - #Example Use -
#include <time.h> #include <librock/datime.h> int librock_ssgmtime( const char librock_PTR *sptr, librock_STRUCT_TM *tmptr, librock_TIME_T *time);
MM/DD/YYYY HH:MM:SS MM/DD/YY HH:MM:SS DD MonthNAME YYYY HH:MM:SS -/+NNNN (NNNN are digits specifing the offset from GMT) DD MonthNAME YYYY HH:MM:SS GMT Two digit years less than 60 will be windowed into the range 2000-2059, otherwise in the range 1960-1999. Note that this does not parse the day of week. Returns the number of characters processed. Typical use is #ifdef librock_TYPICAL_USE_ssgmtime #include <time.h> #include <librock/datime.h> time_t t; char *ptr = "02/20/02 01:03:44"; ptr += librock_ssgmtime(ptr,NULL,(librock_TIME_T *)&t); printf("%ld\n",(long) t); ptr = "20 Feb 2002 02:03:44 +0100"; ptr += librock_ssgmtime(ptr,NULL,(librock_TIME_T *)&t); printf("%ld\n",(long) t); #endif
tolower gmtime librock_countbl librock_counttoch librock_ssdec librock_wordcmp librock_mkgmtime librock_ssmonth
Copyright 1998-2002 Forrest J. Cavalier III, http://www.mibsoftware.com Licensed under BSD-ish license, NO WARRANTY. Copies must retain this block. License text in <librock/license/librock.txt> librock_LIDESC_HC=12440211096131f5976d36be0cddca4cd9152e45
Verbatim copying and distribution of this generated page is permitted in any medium provided that no changes are made.
(The source of this manual page may be covered by a more permissive license which allows modifications.)
Want to help? We welcome comments, patches. -- Need help? Request paid support.