good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I want to convert a localtime date like so... I would appreciate any suggestions as to the most efficient and readable way to do this. If by "efficient" you mean that you have a large number of these to translate, and that you really want to roll your own instead of using one of the several decent (but sometimes bloated) data manipulation packages, consider doing a hash lookup. Pre-generate a mapping like and then you can do something like
You didn't show us where the year comes in, so that's an open issue you'd need to deal with. Pregenerating the conversion hash is left as an exercise. In reply to Re: Optimal Date conversion? (Too much information)
by dws
|
|