I was wondering if there's an elegant method to convert date date/time
in the format YYYYMMDDHH to DMonYYYY HH (e.g. 2013100112 --> 1Oct2013
12)? Basically, to define in an input format and an output format.
I'm currently extracting substrings for each field, and using 12 if
statements to switch from MM to Mon. Not a big deal of course, but I
didn't know if there are any existing functions that might be able to
handle this... I couldn't spot any.
Thanks,
Brian
-- Brian McNoldy Senior Research Associate ============================ University of Miami Rosenstiel School of Marine & Atmospheric Science Phone: (305) 421-4272 http://andrew.rsmas.miami.edu/bmcnoldy/
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Oct 31 12:28:59 2013
This archive was generated by hypermail 2.1.8 : Fri Nov 01 2013 - 08:58:14 MDT