Skip to content

Commit 5792e5f

Browse files
committed
add date time example
1 parent 129b8ef commit 5792e5f

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

editors/micro_callisto.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ rules:
1010
- statement: "\\b(implement|as|try|catch|throw|unsafe|man|ptr|anon)\\b"
1111
- type: "\\b(addr|void|u8|i8|u16|i16|u32|i32|u64|i64|size|usize|cell|array|bool)\\b"
1212
- type: "\\b[A-Z]+[a-zA-Z_0-9]*[a-z]+[a-zA-Z_0-9]*\\b"
13+
- type: "\\b[A-Z]\\b"
1314

1415
- constant.string:
1516
start: "\""

examples/uxn/datetime.cal

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
include "cores/select.cal"
2+
include "std/io.cal"
3+
include "uxn/datetime.cal"
4+
5+
let UxnDateTime time
6+
&time uxn_get_date_time
7+
8+
time.hour print_dec ':' print_ch
9+
time.minute print_dec ':' print_ch
10+
time.second print_dec new_line

0 commit comments

Comments
 (0)