dttime

Purpose

Creates a matrix in DT scalar format containing only the hour, minute and second. The date information is zeroed out.

Format

dt = dttime(hour, minute, second)
Parameters:
  • hour (NxK matrix) – Hours. \(0 \leq hour \leq 23\).
  • minute (NxK matrix) – Minutes. \(0 \leq minute \leq 59\).
  • second (NxK matrix) – Seconds. \(0 \leq second \leq 59\).
Returns:

dt (NxK matrix) – DT scalar format times.

Examples

hour = 11;
minute = 27;
seconds = 56;

dttime(hour, minute, seconds);

After the above code:

112756

Remarks

The arguments must be ExE conformable.

Source

time.src

See also

Functions dtday(), dtdate(), utctodt(), dttostr()