Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.1.0 - Français


ymd

extracts year, month and day of datetime

Syntax

[y, m, d] = ymd(dt)

Arguments

dt

datetime

y

real scalar, vector or matrix containing year value(s) of dt

m

real scalar, vector or matrix containing month value(s) of dt

d

real scalar, vector or matrix containing day value(s) of dt

Description

[y, m, d] = ymd(dt) returns the year, month and day values of input argument dt.

Examples

dt = datetime(2024, 10, 5):caldays(20):datetime(2025, 3, 25)
[y, m, d] = ymd(dt)

See also

History

VersionDescription
2024.0.0 Introduction in Scilab.
Report an issue
<< year Temps - calendrier date horloge Sorties >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu May 22 12:54:26 CEST 2025