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


year

extracts year from datetime

Syntax

y = year(dt)

Arguments

dt

datetime

y

year value(s)

Description

y = year(dt) returns the year values of the input argument dt.

Examples

dt = datetime(2010, 2, 5):calyears(3):datetime(2022, 6, 30)
y = year(dt)

dt = datetime()
y = year(dt)

See also

History

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

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