set_taxis

Function splitlongdate

  Split one or more dates of the form yyyymmddHHMM into 
  date: yyyymmdd and time: HHMM.
  
  

CALL:

   [datum, time] = splitlongdate(longdate)
  
  

INPUT:

   longdate: Vector of integers of format YYYYMMDDHHMM.
  
  

OUTPUT:

   datum: Vector of integers of format yyyymmdd.
    time:  Vector of integers of format HHMM.
  
  

EXAMPLE:

   [datum, time] = splitlongdate(200808141200)
datum =
    20080814
time =
        1200

See also:

long2datenum
datenum
datestr
datenum2long