| Group: | Handling of time |
| Topic: | Time as numerical output |
| See also: | nyear ndayofmonth ndayofweek nhour nminute nsecond |
| Function: | nmonth | |
| Description: | returns the month as a number |
| Usage: | tn = nmonth(t) | |
| Input: | ||
| t | n x 1 time vector | |
| Output: | ||
| tn | n x 1 array | |
yr = 1970 + (1:10) t = settime(yr) ts = nmonth(t) ts
Contents of ts [ 1,] 1 [ 2,] 1 [ 3,] 1 [ 4,] 1 [ 5,] 1 [ 6,] 1 [ 7,] 1 [ 8,] 1 [ 9,] 1 [10,] 1
| Group: | Handling of time |
| Topic: | Time as numerical output |
| See also: | nyear ndayofmonth ndayofweek nhour nminute nsecond |