Agent skill

datetime

Get current date and time in various formats. Use whenever you need the current date, time, timestamps, or formatted datetime values for any purpose (logging, file naming, scheduling, comparisons, etc.)

Stars 36
Forks 6

Install this agent skill to your Project

npx add-skill https://github.com/DeevsDeevs/agent-system/tree/main/datetime

SKILL.md

datetime - Current Date & Time

Get the current date and time in various formats.

Quick Reference

bash
# Date only
date +%Y-%m-%d                    # 2025-01-15
date +%Y/%m/%d                    # 2025/01/15
date +%d-%m-%Y                    # 15-01-2025

# Date with time
date +"%Y-%m-%d %H:%M:%S"         # 2025-01-15 14:30:45
date +"%Y-%m-%dT%H:%M:%S"         # 2025-01-15T14:30:45 (ISO 8601)
date -u +"%Y-%m-%dT%H:%M:%SZ"     # 2025-01-15T14:30:45Z (UTC ISO 8601)

# Time only
date +%H:%M:%S                    # 14:30:45
date +%H:%M                       # 14:30
date +%I:%M%p                     # 02:30PM (12-hour)

# Timestamps
date +%s                          # 1705329045 (Unix epoch)
date +%s%3N                       # 1705329045123 (milliseconds)

# Human readable
date "+%B %d, %Y"                 # January 15, 2025
date "+%A, %B %d, %Y"             # Wednesday, January 15, 2025
date "+%b %d %Y"                  # Jan 15 2025

# File-safe formats (no colons/spaces)
date +%Y%m%d                      # 20250115
date +%Y%m%d_%H%M%S               # 20250115_143045
date +%Y%m%d-%H%M%S               # 20250115-143045

When to Use

Use this skill whenever you need:

  • Current date for logging or timestamps
  • Date strings for file naming
  • ISO 8601 formatted dates for APIs
  • Unix timestamps for calculations
  • Human-readable date displays
  • UTC time for cross-timezone consistency

Format Codes

Code Output Example
%Y Year (4-digit) 2025
%m Month (01-12) 01
%d Day (01-31) 15
%H Hour 24h (00-23) 14
%M Minute (00-59) 30
%S Second (00-59) 45
%I Hour 12h (01-12) 02
%p AM/PM PM
%s Unix timestamp 1705329045
%A Weekday name Wednesday
%B Month name January
%b Month abbrev Jan
%Z Timezone PST

Common Patterns

Log timestamp:

bash
echo "[$(date +"%Y-%m-%d %H:%M:%S")] Event occurred"

Backup file naming:

bash
cp file.txt "file_$(date +%Y%m%d_%H%M%S).txt"

API timestamp (UTC):

bash
date -u +"%Y-%m-%dT%H:%M:%SZ"

Expand your agent's capabilities with these related and highly-rated skills.

DeevsDeevs/agent-system

arxiv-search

Search arXiv preprint repository for research papers in physics, mathematics, computer science, quantitative biology, finance, and statistics. Use when finding academic papers, preprints, ML research, scientific publications. Triggers: arxiv, preprint, research paper, academic paper, scientific literature.

36 6
Explore
DeevsDeevs/agent-system

mft-research-experts

Run research orchestration for data quality, factor geometry, hypothesis validation, and incident forensics. Use when you need SHIP/KILL/ITERATE decisions with strict validation. Triggers: mft-strategist, data-sentinel, factor-geometer, skeptic, forensic-auditor, research pipeline, hypothesis validation, post-mortem.

36 6
Explore
DeevsDeevs/agent-system

97-dev

Apply timeless programming wisdom from "97 Things Every Programmer Should Know" when writing, reviewing, or refactoring code. Use for design decisions, code quality checks, professional development guidance, testing strategies, and workflow optimization.

36 6
Explore
DeevsDeevs/agent-system

dev-experts

Apply opinionated developer personas for architecture decisions, production debugging, language-specific code review, comprehensive reviewer passes, and test strategy. Use when you need an architect plan, devops investigation, Rust/Python/C++ review, grumpy reviewer audit, or tester-driven test plan. Triggers: architect, devops, rust-dev, python-dev, cpp-dev, reviewer, tester, pre-merge review, refactor for maintainability.

36 6
Explore
DeevsDeevs/agent-system

polars-expertise

This skill should be used when the user asks about Polars DataFrame library (Apache Arrow) for Python or Rust. Triggers: "polars expressions", "lazy vs eager", "scan_parquet streaming", "convert pandas to polars", "pyspark to polars", "kdb to polars", "group_by_dynamic", "rolling_mean", "polars window functions", "asof join", "polars GPU", "polars parquet", "LazyFrame". Time series: OHLCV resampling, rolling windows, financial data patterns. Performance: native expressions over map_elements, early projection, categorical types, streaming.

36 6
Explore
DeevsDeevs/agent-system

venue-expert

This skill should be used when the user asks about "market microstructure", "exchange mechanics", "order book", "auction", "NBBO", "Reg NMS", "trading venue", "halt", "LULD", "tick size", "maker-taker", "price-time priority", "SIP", "direct feed", "TRF", "wholesaler", "PFOF", "best execution", "trade-through", "ISO", "opening cross", "closing cross", "NOII", "ITCH", "OUCH", or mentions specific exchanges (Nasdaq, NYSE, CME, Binance, SHFE, DCE, CZCE, CFFEX, INE, etc.). For Chinese futures: "CTP", "综合交易平台", "夜盘", "night session", "看穿式监管", "position limits", "持仓限额", queue position in Chinese markets, or Chinese product codes (rb, cu, sc, if, ic, i, j, ta, ma, etc.). Provides hierarchical venue expertise for research and debugging trading systems.

36 6
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results