marqdo

时间ok

stdlib/时间.mq.md

Structure

import时间:lib/时间.mq.md
fn · h1main
comment

Unix 时间助手(lib/时间)。格式为 strftime。

bind `s` = [时间.格式化] 秒=0 格式=%Y-%m-%d
call> 打印 内容=`s`
bind `u` = [时间.解析时间] 内容=1970-01-01 00:00:00 格式=%Y-%m-%d %H:%M:%S
call> 打印 内容=`u`
call[时间.睡眠毫秒] 毫秒=0
Functions
Variables
  • s text
    1970-01-01
  • u int
    0

Execution

1970-01-01 0

Source

---
title: lib/时间 — 时钟
description: Unix 时间、格式化、解析、睡眠
导入 时间:lib/时间.mq.md
---

# main

Unix 时间助手(lib/时间)。格式为 strftime。

**`s` = [时间.格式化] 秒=0 格式="%Y-%m-%d"**
**打印 内容=`s`**

**`u` = [时间.解析时间] 内容="1970-01-01 00:00:00" 格式="%Y-%m-%d %H:%M:%S"**
**打印 内容=`u`**

**[时间.睡眠毫秒] 毫秒=0**

Variable