The NewsBin Log Date: that is saved to the descript.ion appears to be defined as the Date: field of the post (derived from a careful parsing of the dialog box text). I'm good with what ever it is as long as it doesn't change from one release to the next. I had changed my Windows locale to format the date in MySQL style (for NewsBin 6.4x) format but the RFC specified format would work as well.
Quade wrote:There's no kind of standard for the date and time.
The date-time format is defined in RFC 5322:
date-time = [ day-of-week "," ] date time [CFWS]
day-of-week = ([FWS] day-name) / obs-day-of-week
day-name = "Mon" / "Tue" / "Wed" / "Thu" /
"Fri" / "Sat" / "Sun"
date = day month year
day = ([FWS] 1*2DIGIT FWS) / obs-day
month = "Jan" / "Feb" / "Mar" / "Apr" /
"May" / "Jun" / "Jul" / "Aug" /
"Sep" / "Oct" / "Nov" / "Dec"
year = (FWS 4*DIGIT FWS) / obs-year
time = time-of-day zone
time-of-day = hour ":" minute [ ":" second ]
hour = 2DIGIT / obs-hour
minute = 2DIGIT / obs-minute
second = 2DIGIT / obs-second
zone = (FWS ( "+" / "-" ) 4DIGIT) / obs-zone
If I posted something at 1:37:15pm my time today, it would show up with a date of "Sat, 04 Jan 2014 13:37:15 -0800"
Interestingly, the NewsBin displayed time stamp is off by one hour on my Windows XP system. Something that was posted at 19:37:02 -0600 is showing a date of 18:37 in PST time zone (should be 17:37; ideally 17:37:02). I suspect that this may be a bailout as a result of the abomination that is the way that XP and earlier handled DST (it concealed a change of time zone).
The article age is correct!
The NewsBin 4.x date format was "month day time-of-day year" had the correct elements in a rather peculiar, but eminently consistent, order.
Quade wrote: I imagine what happens is when I change the code to display the date in the post list, the description code just inherits the change.
This is a new behavior (as was the locale formatting of the date in v6.4) and I would suggest that a viewing toggle in the post list should not impact the output of the logging function.
If your resources were infinite, my preference for the Log Date: would be to have it convert the Date: from the post to my local time (since this appears to have been done at some level in previous releases). My second choice would be to copy it directly from the Date: field of the post.
The utility that I spoke of earlier inserts a record of each download into a MySQL database along with some CRCs. Being able to parse the descript.ion file is important to me.