system-time
System Time
Get accurate system time information in multiple formats.
Quick Usage
Current Time (Local)
date # Human readable
date -Iseconds # ISO 8601 with seconds
date +%s # Unix timestamp
Current Time (UTC)
date -u # UTC human readable
date -u -Iseconds # UTC ISO 8601
date -u +%s # UTC Unix timestamp (same as local)
Specific Timezone
TZ=Asia/Shanghai date # Shanghai time
TZ=America/New_York date # New York time
TZ=Europe/London date # London time
Common Formats
| Format | Command | Example Output |
|---|---|---|
| ISO 8601 | date -Iseconds |
2024-03-11T16:30:00+08:00 |
| Unix timestamp | date +%s |
1710145800 |
| RFC 2822 | date -R |
Mon, 11 Mar 2024 16:30:00 +0800 |
| Custom | date "+%Y-%m-%d %H:%M:%S" |
2024-03-11 16:30:00 |
Timezone Conversion
Convert from one timezone to another:
# Convert specific time from Shanghai to New York
TZ=America/New_York date -d "2024-03-11 16:30:00 CST"
# List available timezones
ls /usr/share/zoneinfo/
Python Alternative (for scripting)
from datetime import datetime, timezone
# Current UTC time
utc_now = datetime.now(timezone.utc)
print(utc_now.isoformat())
# Current local time
local_now = datetime.now()
print(local_now.isoformat())
# Unix timestamp
print(int(utc_now.timestamp()))
Notes
- Unix timestamp is always UTC (timezone-independent)
- ISO 8601 format includes timezone offset
- Use
timedatectlon Linux systems for system clock info
More from leoyeai/openclaw-master-skills
readgzh
ReadGZH — Let AI read full-text WeChat Official Account articles. Supports standard articles and image-post formats.
4tushare-finance
获取中国金融市场数据(A股、港股、美股、基金、期货、债券)。支持220+个Tushare Pro接口:股票行情、财务报表、宏观经济指标。当用户请求股价数据、财务分析、指数行情、GDP/CPI等宏观数据时使用。
3find-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
2eastmoney_financial_data
本 Skill 基于东方财富权威数据库及最新行情底层数据构建,支持通过自然语言查询行情类数据(股票、行业、板块、指数、基金、债券的实时行情、主力资金流向、估值等)、财务类数据(上市公司基本信息、财务指标、高管信息、主营业务等)、关系与经营类数据(关联关系、企业经营数据)。避免模型基于过时知识回答金融数据问题,提供权威及时的金融数据。
2stock-analysis
Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock scoring, viral trend detection (Hot Scanner), and rumor/early signal detection. Use for stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.
2linkedin
LinkedIn automation via browser relay or cookies for messaging, profile viewing, and network actions.
1