I agree with Mark. Timestamp format is heavily dependent on locale (language and
country). Handling time zones are equally problematic because daylight saving
changes for each year and each country that can not be predicted. I would
rather like to have the proposed extension reverted.
Mark D. Niemiec wrote:
Roger Hui <[EMAIL PROTECTED]> wrote:
So you want to be a language implementer? See:
http://www.jsoftware.com/jwiki/Essays/Timestamp_Extension
In my opinion, this function, while useful, appears to lack flexibility.
formatString timeFormat 6!:0 ''
would be much useful and general than
6!:0 formatString
(where timeFormat could be either another foreign or a user-defined verb),
since it could be used to format other times as well,
such as time-stamps adjusted by time zones, etc.
This could likely be done by a library verb, unless it is
something that would be done often, and performance is a significant factor.
If you REALLY want the same syntax, you could get it via
nowFormat =: timeFormat 6!:0@(''"_)
nowFormat formatString
-- Mark D. Niemiec <[EMAIL PROTECTED]>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm