mytime

Collect timezone, locale, and OS data at session start using Python.

Updated Jan 22, 2026
One-click install
npx skills add https://github.com/NightmareZero/myAgSkills --skill mytime
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mytime
Source: https://github.com/NightmareZero/myAgSkills/tree/main/mytime
Command: npx skills add https://github.com/NightmareZero/myAgSkills --skill mytime

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytz, tzlocal, and includes scripts (resource) components.

What problem does it solve?

Automates gathering core time and environment details at session start, enabling language preferences and quick access to timezone, offsets, times, and OS info.

Core Features & Use Cases

  • Auto-invoked at session start to fetch timezone, local and UTC times, UTC offset, system language, OS name, and architecture.
  • Caches information for the session and sets Chinese as the preferred language for responses.
  • Provides a structured JSON output for downstream tools and logging.

Quick Start

Run the script to retrieve the current time and system information.

Frequently Asked Questions about mytime

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically retrieve local time and timezone information when a Python session starts?

To automatically retrieve local time and timezone information at session start, run a script that fetches timezone, UTC offset, local time, and UTC time. This process uses Python with tzlocal and pytz to establish accurate time context.

What is the best way to collect OS name, architecture, and system language preferences in Python?

The best way to collect OS name, architecture, and system language is to automate environment data gathering at session start. This approach retrieves core system info and sets language preferences for downstream tools using structured JSON output.

Do I need pytz and tzlocal to accurately fetch UTC offset and local time data?

You need pytz and tzlocal dependencies to achieve enhanced accuracy when fetching UTC offset and local time data. These Python libraries support the retrieval of precise timezone information during session initialization workflows across various environments.

Can I cache timezone and system environment details for the duration of a Python session?

You can cache timezone and system environment details for the duration of a Python session. The script caches retrieved information including local time, OS architecture, and system language to ensure consistent context without repeated system calls.