Hi all,

I was playing around with date/time formatting and ended up with :

   frs =: 3 : '''-- ::'' (4+3*i.5)}''0'' (I. y='' '') } y=.4 3 3 3 3 7j3 ":
y'

I tried breaking it up into components to see if something would come out
of it :

SE=: '-- ::' NB. Spacing Elements KS=: 4+3*i.5 NB. Koordinates of Spacing
elements FT=: 4 3 3 3 3 7j3 NB. Formatting Time elements BZ=: 3 : '''0''
(I. y='' '') } y' NB. Blanks to Zeroes
   DTF=: 3 : 'SE KS} BZ FT ": y' NB. Date Time Format ]t=: 6!:0 '' 2018 1
26 16 54 0.188 DTF t 2018-01-26 16:54:00.188

I didn't get any new ideas but it got me thinking about programming style
and what kind of code I'd like to maintain.


All comments appreciated.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to