Skip to content

Conversation

@salano-ym
Copy link
Member

@salano-ym salano-ym commented Apr 11, 2024

What

Date:to_iso_strを追加します。

Example

let d = Date:now()
<: Date:to_iso_str(d, 9*60) // 2024-04-12T01:47:46.021+09:00

@Date:to_iso_str(date?: num, time_offset?: num): str

date を拡張表記のISO形式にした文字列を返します。
date を渡していない場合は現在時刻を使用します。
time_offset はUTCからの時差(分単位)を指定します。
time_offset を渡していない場合はローカルのものを参照します。

Why

#571

Additional info (optional)

@salano-ym salano-ym self-assigned this Apr 11, 2024
@salano-ym salano-ym requested a review from FineArchs April 15, 2024 10:05
@salano-ym salano-ym mentioned this pull request Apr 15, 2024
6 tasks
@FineArchs
Copy link
Member

👀

@salano-ym
Copy link
Member Author

マージ条件を満たしたのでマージします

@salano-ym salano-ym merged commit bc0c5a9 into aiscript-dev:master Apr 22, 2024
@salano-ym salano-ym deleted the date-to-iso-str branch May 13, 2024 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants