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 !

Mon Nov 12 09:49:02 2018

Postby Phil Last on Mon Nov 12, 2018 9:59 am

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
Phil Last
 
Posts: 628
Joined: Thu Jun 18, 2009 6:29 pm
Location: Wessex

Re: Mon Nov 12 09:49:02 2018

Postby AndyS|Dyalog on Mon Nov 12, 2018 2:58 pm

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 ..
User avatar
AndyS|Dyalog
 
Posts: 257
Joined: Tue May 12, 2009 6:06 pm

Re: Mon Nov 12 09:49:02 2018

Postby Roger|Dyalog on Mon Nov 12, 2018 10:14 pm

ISO 8601 specifies a standard format for timestamps.
Roger|Dyalog
 
Posts: 238
Joined: Thu Jul 28, 2011 10:53 am

Re: Mon Nov 12 09:49:02 2018

Postby JohnS|Dyalog on Tue Nov 13, 2018 10:37 am

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.
JohnS|Dyalog
 

Re: Mon Nov 12 09:49:02 2018

Postby Richard|Dyalog on Tue Nov 20, 2018 1:14 pm

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
Richard|Dyalog
 
Posts: 44
Joined: Thu Oct 02, 2008 11:11 am

Re: Mon Nov 12 09:49:02 2018

Postby Bob Armstrong on Thu Nov 22, 2018 4:55 am

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 .
User avatar
Bob Armstrong
 
Posts: 26
Joined: Wed Dec 23, 2009 8:41 pm
Location: 39.038681° -105.079070° 2500m


Return to APL Chat

Who is online

Users browsing this forum: No registered users and 1 guest