← 返回
未分类

time-converter

yjkj999999
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 21
下载
💾 0
安装
1
版本
#latest

概述

time-converter

Convert time between different timezones.

Description

A simple command-line tool to convert time from one timezone to another. Supports various time formats and displays the converted time with timezone offsets.

Installation

chmod +x ~/.openclaw/skills/time-converter/convert_time

Usage

convert_time --from <source_timezone> --to <target_timezone> --time <time> [--date <date>]

Arguments

  • --from: Source timezone (e.g., America/New_York, Asia/Shanghai, Europe/London)
  • --to: Target timezone (e.g., Asia/Tokyo, UTC, America/Los_Angeles)
  • --time: Time to convert (formats: HH:MM, HH:MM:SS, HH:MM AM/PM)
  • --date: Optional date for conversion (format: YYYY-MM-DD, default: today)

Examples

Basic conversion

convert_time --from "America/New_York" --to "Asia/Shanghai" --time "10:00"

Output:

2024-03-20 10:00:00 America/New_York
  =
2024-03-20 23:00:00 Asia/Shanghai

Offset: -04:00 → +08:00

With specific date

convert_time --from "Europe/London" --to "UTC" --time "14:30" --date "2024-12-25"

Using 12-hour format

convert_time --from "Asia/Tokyo" --to "America/Los_Angeles" --time "9:00 PM"

Common Timezones

  • UTC - Coordinated Universal Time
  • America/New_York - Eastern Time (US)
  • America/Los_Angeles - Pacific Time (US)
  • America/Chicago - Central Time (US)
  • Europe/London - London Time
  • Europe/Paris - Central European Time
  • Asia/Shanghai - China Standard Time
  • Asia/Tokyo - Japan Standard Time
  • Asia/Singapore - Singapore Time
  • Australia/Sydney - Australian Eastern Time

Notes

  • Uses Python's zoneinfo module (Python 3.9+)
  • Automatically handles daylight saving time transitions
  • Timezone names follow the IANA timezone database format

版本历史

共 1 个版本

  • v1.0.0 从ClawHub迁移发布 当前
    2026-06-07 11:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

financial-audit-domain

user_15292d5a
财报排雷审计分析知识参考库(领域负载物)。覆盖偿债能力、经营资产质量、长期资产质量、负债权益结构、收入盈利质量、现金流质量六大排雷域,含50项核心指标与5条舞弊红线。仅适用于A股非金融类上市公司。触发词:财报排雷、财务排雷、财务报表分析、财
★ 2 📥 28

agnes-image-gen

user_15292d5a
使用 Agnes AI 的图片生成模型生成图片,支持文生图(agnes-image-2.1-flash)和图生图(agnes-image-2.0-flash)。支持自定义 API Key,用户可使用自己的 Agnes Key。优化重点:降低
★ 0 📥 98

nuwa-skill-qszf

user_15292d5a
女娲造人 — 输入人名/主题,自动深度调研蒸馏成可运行的Skill
★ 2 📥 47