Details
-
New Feature
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
Description
such a method added to the System class would be extremely useful. An example use case is setting the lastModified date of a file where dividing the milliseconds by 1000 results in a BigDecimal object instead of a long. Of course one could simply cast it to a long, but having a method like this is a far more groovy solution.
A method like this would also go a long way towards eliminating boilerplate with regards to date objects and any time-related functions in general.