diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Plugins/Library/ml_wire/date.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Plugins/Library/ml_wire/date.h')
-rw-r--r-- | Src/Plugins/Library/ml_wire/date.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Src/Plugins/Library/ml_wire/date.h b/Src/Plugins/Library/ml_wire/date.h new file mode 100644 index 00000000..58204571 --- /dev/null +++ b/Src/Plugins/Library/ml_wire/date.h @@ -0,0 +1,20 @@ +#ifndef _OD_DATE_ +#define _OD_DATE_ + +#include <time.h> + + + +/* These functions all work with "Internet"(RFC 822) format Date/Time strings only */ +/* An example of an RFC 822 format Date/Time string is "Thu, 28 Aug 2003 21:30:47 EDT" */ + +/* converts the RFC 822 format date string into UTC Calendar time */ +time_t getDateSecs(char *date); + +/* returns a string that represents the given UTC Calendar time value as an + RFC 822 format string. The buffer is user-supplied and must be at least + 30 bytes in size. */ +char *getDateStr(time_t tmval, char *buffer, int gmt); + +#endif /*_OD_DATE_*/ + |