🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.headers
Article #265

Re: Date HELP !!!

#265
From: John R Buchan (jatmon)
Date: Mon, 21 Aug 1995 00:17
18 lines
910 bytes
In article <41841c$jn6@elron2.elron.net>, teletel@elronet.co.il says...
>
>
>Please !!
>
>I need a "c" source code for converting
>litral date in the "Date:" field of E-Mail Header
>into a simple "YYMMDD" format
>

Assuming that the format of the string remains constant
you could try sscanf with a format string similar to:

"%*s %[^,], %d %s %d %d:%d:%d %s"

-- 
John R Buchan           -:|:-     Looking for that elusive FAQ?  ftp to:
jatmon@mail.iag.net     -:|:-     rtfm.mit.edu /pub/usenet-by-group/....
Technical Details
Message-ID: <418jaj$amq@news.iag.net>
Path: arc1-ca.pugleaf.net!news.iag.net!usenet
References: <41841c$jn6@elron2.elron.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.iag.net!usenet
From: jatmon@iag.net (John R Buchan (jatmon))
Newsgroups: comp.mail.headers,comp.lang.c
Subject: Re: Date HELP !!!
Date: 21 Aug 1995 00:17:23 GMT
Organization: Internet Access Group, Orlando, Florida
Message-ID: <418jaj$amq@news.iag.net>
References: <41841c$jn6@elron2.elron.net>
NNTP-Posting-Host: pm1-orl7.iag.net
X-Newsreader: WinVN 0.99.2