More buildins and vscode exstention <CO-AUthored, ai>

This commit is contained in:
allexanderbergmns
2026-08-25 16:20:11 +02:00
parent 5daadce7a9
commit 7ed774089e
27 changed files with 2080 additions and 122 deletions
+23
View File
@@ -34,3 +34,26 @@ fn date(t) {
fn clock(t) {
return format_time(t, "HH:mm:ss")
}
// weekday(t) returns the day of the week, e.g. "Mon", "Tue", ... "Sun".
fn weekday(t) {
return weekday(t)
}
// --- date arithmetic (all values are Unix epoch seconds) ---
fn add_seconds(t, n) {
return t + n
}
fn add_minutes(t, n) {
return t + n * 60
}
fn add_hours(t, n) {
return t + n * 3600
}
fn add_days(t, n) {
return t + n * 86400
}