'// :::' is more compact than (2 1 3#'/ :').

Thanks,

-- 
Raul

On Tue, Jan 23, 2018 at 8:35 AM, Roger Hui <[email protected]> wrote:
>    t=: 1969 7 21 2 56 0
>
>    }: ; (2 1 3#'/ :') (,~,)&.> ('r<0>4.0';5$<'r<0>2.0') 8!:1 ,: t
> 1969/07/21 02:56:00
>
>
> On Mon, Jan 22, 2018 at 7:02 PM, Ian Clark <[email protected]> wrote:
>
>> (6!:0 NIL) returns the current date/time as an integer 6-list timestamp.
>>
>> (6!:0 'hh:mm:ss MM/DD/YY') ditto, but in the specified format (y).
>>
>> How can I use the *selfsame* algorithm to format any (valid) timestamp?
>>
>> If the answer is "only by writing my own formatting verb, or by setting the
>> system clock", might there be a case for extending (6!:0) to take an
>> optional (x)? Not just an integer 6-list timestamp as described, but a few
>> other forms, like (_1) meaning yesterday.
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to