Community
Participate
Working Groups
RBD writes: ts1 = 2011-10-05 19:46:01 ts2 = 2011-10-05 19:46:01.109000 ts3 = 2011-10-05 ts4 = 10-05 19:46:01.10 ts4 with format = October 05, 2011 at 07:46 PM EDT writes: ts1 = 2011-10-05 19:36:51.562000 ts2 = ts3 = ts4 = ts4 with format = October 05, 2011 at 07:36 PM program formatTimeStamp type BasicProgram{} ts1 timeStamp; ts2 timeStamp("yyyyMMddHHmmssffffff"); ts3 timeStamp("yyyyMMdd"); ts4 timeStamp("MMddHHmmssff"); tsString string; myFormat string = "MMMMMMMMM dd, yyyy ' at ' hh:mm aa"; function main() tsString = ts1; SysLib.writeStdout("ts1 = " + tsString); tsString = strLib.formatTimestamp(ts2); SysLib.writeStdout("ts2 = " + tsString); tsString = strLib.formatTimestamp(ts3); SysLib.writeStdout("ts3 = " + tsString); tsString = strLib.formatTimestamp(ts4); SysLib.writeStdout("ts4 = " + tsString); tsString = strLib.formatTimestamp(ts4,myFormat); SysLib.writeStdout("ts4 with format = " + tsString); end end
This defect will become invalid once the agree-upon changes are made to EDT. The changes are that the default formats will disappear and that will also cause the format functions that don't specify a default as an arg, will become invalid.
OK