From f03587be8d1001db0d9bf7fbd8be1f8f9c42d702 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 29 Sep 2024 20:13:00 -0400 Subject: Document now() --- docs/README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'docs/README.md') diff --git a/docs/README.md b/docs/README.md index 364cd2ca..b04c3d0c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -169,3 +169,28 @@ Nothing, aborts the program. ```markdown fail("Oh no!") ``` + +--- + +### `now` + +**Description:** +Gets the current time. This is an alias for `DateTime.now()`. + +**Usage:** +```markdown +now() -> DateTime +``` + +**Parameters:** + +None. + +**Returns:** +The current moment as a DateTime. + +**Example:** +```markdown +>> now() += Sun Sep 29 20:12:33 2024 +``` -- cgit v1.2.3