Mon Nov 12 09:49:02 2018

APL-related discussions - a stream of APL consciousness.
Not sure where to start a discussion ? Here's the place to be
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
Post Reply
User avatar
Phil Last
Posts: 628
Joined: Thu Jun 18, 2009 6:29 pm
Location: Wessex

Mon Nov 12 09:49:02 2018

Post by Phil Last »

The subject of this thread is the weekday, month, monthday, time and year as displayed in the session when I just loaded Dyalog APL.

Why?

Why does Dyalog provide the session start time in such a peculiar format?

Is this standard across all (or even some others (or even one other)) APLs?

p.s. I've been meaning to ask this question for years. (Perhaps I need to get a life.)
User avatar
AndyS|Dyalog
Posts: 263
Joined: Tue May 12, 2009 6:06 pm

Re: Mon Nov 12 09:49:02 2018

Post by AndyS|Dyalog »

I think because it seemed like a good idea many years ago - I've gone back to 8.2 from 2002 and the banner has the same timestamp format.

We've had a look at other APLs and there appears to be no consistency between their banners.

I doubt if we would want to change the timestamp format though .. there are those (particularly on non-Windows platforms) who redirect output and are probably parsing the timestamp and I'm not sure that the effort that we would impose on them is justified ..
Roger|Dyalog
Posts: 238
Joined: Thu Jul 28, 2011 10:53 am

Re: Mon Nov 12 09:49:02 2018

Post by Roger|Dyalog »

ISO 8601 specifies a standard format for timestamps.
JohnS|Dyalog

Re: Mon Nov 12 09:49:02 2018

Post by JohnS|Dyalog »

Historical note: in an early version, I managed to make the session banner OCD-compliant by having the Dyalog version ... line and the timestamp line the same length.
User avatar
Richard|Dyalog
Posts: 44
Joined: Thu Oct 02, 2008 11:11 am

Re: Mon Nov 12 09:49:02 2018

Post by Richard|Dyalog »

The format is the default of the standard C library date formatting functions:

http://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html
User avatar
Bob Armstrong
Posts: 27
Joined: Wed Dec 23, 2009 8:41 pm
Location: 39.038681° -105.079070° 2500m
Contact:

Re: Mon Nov 12 09:49:02 2018

Post by Bob Armstrong »

I evolved quite a few years ago to the format

Code: Select all

Fri.Dec,20121228
for "daylns" and simple floats ,

Code: Select all

20181121.2142
, for time stamps .

Easily parsable , pickup-able and sortable .

Never really settled on delta from UTC because I don't get around that much . Guess I'd just use simple +-offset .

Incidentally , my demo of CoSy at this year's Forth Day at Stanford is at https://www.youtube.com/watch?v=mXBeFSOTrK4&t=8880s .
Post Reply