Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Time and Date > weekday




[N,S] = weekday(D)
[N,S] = weekday(D, form)


[N,S] = weekday(D) は, 日数 n または日付文字列Dで指定すると, 数値(N) および文字列(S)形式で曜日を返します. 入力引数 D は,日数の配列で複数の日を表すことができます.

[N,S] = weekday(D, form) は, 数値(N) および文字列(S)形式で曜日を返しますが, S の内容は form 引数に依存します. form が 'long'の場合, S には完全な曜日 (例: Thuesday)が含まれます. form が 'short'の場合, S には短縮形 (例: Tue) が含まれます.

today = datenum();
[N,S] = weekday(today)
[N,S] = weekday(today,'short')
[N,S] = weekday(today,'long')


  • datenum — シリアル日付番号に変換する
  • datevec — 日付の要素
  • weekday — 曜日を返す
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Apr 02 17:37:34 CEST 2013