dateTimeAs

Synopsis

String dateTimeAs(long millisecs [, String pattern])

Description

Converts the millsecs to a string using the pattern provided according to the formatting rules given in http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html . If no pattern is given the default formatting pattern is used.

This function is efficient so long as the pattern is not constantly changing during execution.

Example

>> dateTimeAs(0)
12/31/69 7:00 PM
>> dateTimeAs(0,"E")
Wed