minute

Minute of date or time

Description

example

Minute = minute(Date) returns the minute of date or time given a serial date number or a character vector representing a date and time.

example

Minute = minute(___,F) returns the minute of date or time given a serial date number or a date character vector, Date, using format defined by the optional input F. Date can be a character array where each row corresponds to one date character vector, or a one-dimensional cell array of character vectors. All the character vectors in Date must have the same format F. F must designate a supported date format symbol. For more information on supported date formats, see datestr.

Examples

collapse all

Find the minutes of the day for Date using a serial date number.

Minute = minute(731204.5591223380)
Minute = 25

Find the minutes of the day for Date using a character vector representing a date and time.

Minute = minute('19-dec-2001, 13:25:08.17')
Minute = 25

Input Arguments

collapse all

Date to determine minute, specified as a serial date number or a character vector representing a date and time.

Date can be an array of date character vectors, where each row corresponds to one date character vector, or a one-dimensional cell array of character vectors. All the character vectors in Date must have the same format F. F must designate a supported date format symbol. For more information on supported date formats, see datestr

Data Types: single | double | char | cell

Date format symbol, specified as a character vector to designate the date format symbol for input argument Date. For more information on supported character vector formats, see datestr. Note, formats with 'Q' are not accepted.

Data Types: char

Output Arguments

collapse all

Minute of date or time, returned as a nonnegative number.

Introduced before R2006a