This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

minute

Syntax

m = minute(t)

Description

example

m = minute(t) returns the minute numbers of the datetime values in t. The m output is a double array the same size as t and contains integer values from 0 to 59.

The minute function returns the minute numbers of datetime values. To assign minute values to a datetime array, t, use t.Minute and modify the Minute property.

Examples

collapse all

t1 = datetime('now');
t = t1 + minutes(2:4)
t = 1x3 datetime array
   27-Aug-2018 13:34:34   27-Aug-2018 13:35:34   27-Aug-2018 13:36:34

m = minute(t)
m = 1×3

    34    35    36

Input Arguments

collapse all

Input date and time, specified as a datetime array.

Extended Capabilities

See Also

| | | |

Introduced in R2014b