Logo

index : 0x2lib

Library extension for Jai

  • summary
  • about
  • tree
  • log
  • branches
<< path: root/public/0x2lib.git/html/tests/datefmt.jai blob: 2b092ecccc007a6d2d75b112b44d3f208cf33a9c [raw] [clear marker]

        
0
1
2
3run :: () -> bool {
4 /** https://apollo.ptrace.dev */
5 ts := seconds_to_apollo(1801023812);
6
7 t := format_date(ts, "%Y-%M-%D %h:%m:%s.%f");
8 ass(t, "2026-08-16 00:41:11.0");
9
10 t = format_date(ts, "%Y-%M-%D %%g \\ --asdjnkld12G%hD3o4fjmp2150 %h_%_%mR8889%s?%f");
11 ass(t, "2026-08-16 %%g \\ --asdjnkld12G00D3o4fjmp2150 00_%_41R888911?0");
12
13 return true;
14}
15
16
17#scope_file
18
19
20#import "Basic";
21#import,file "../0x2_Datefmt.jai";
22
23#load "assertion.jai";
24
25
Copyright 2026  E766CB298A6D1E64 | Git-Thing heavily inspired by cgit