メインコンテンツまでスキップ
バージョン:25.2

year

  • function

  • Returns the year number of a given date, or of the current date if no parameter is given.

  • Examples: +

     put the year —> 2021
     put year("1776-07-04") —> 1776
  • Related: day, month