DateTime.strftime should take a digit before %N for restricting output ----------------------------------------------------------------------
Key: JRUBY-4512 URL: http://jira.codehaus.org/browse/JRUBY-4512 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.4, JRuby 1.5 Environment: Tested in Windows XP Reporter: Brandon Hauff Priority: Minor Fix For: JRuby 1.5 MRI 1.9 and possibly 1.8.7 allow digits in %N. From the 1.9 rdoc: %N - Fractional seconds digits, default is 9 digits (nanosecond) %3N millisecond (3 digits) %6N microsecond (6 digits) %9N nanosecond (9 digits) It seems you can put in any digit you want. At a certain point the number will be too large and MRI will complain: RangeError: bignum too big to convert into `long' Maybe we should support %(1-9)N? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email