osライブラリ

ライブラリ日本語解説あり

ひとことで言うと

時刻や日付を扱うためのライブラリです。

公式の説明(英語):This library provides functions related to time and date.

関数(4)

名前と書き方説明
clock
os.clock(): double
プログラムが動き始めてからの時間を返します。Returns elapsed time in seconds since an arbitrary baseline with sub-microsecond precision.
date
os.date(formatString: string, time: int): Dictionary
日付と時刻の情報を返します。Formats the given string with date/time information based on the given time.
difftime
os.difftime(t2: int, t1: int): int
Returns the number of seconds from one time to another.
time
os.time(time: table): int
今の時刻(秒)を返します。Returns how many seconds have passed since the Unix epoch (1 January 1970, 00:00:00) under current UTC time.

英語の説明とメンバーの一覧は、Roblox Creator Documentation(os)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む