numpy-datetime

Perform vectorized date and time operations using NumPy datetime64 and timedelta64.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/cuba6112/skillfactory --skill numpy-datetime
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: numpy-datetime
Source: https://github.com/cuba6112/skillfactory/tree/main/skills/numpy-datetime
Command: npx skills add https://github.com/cuba6112/skillfactory --skill numpy-datetime

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies complex date and time manipulations, especially for time-series data, by leveraging NumPy's efficient datetime64 and timedelta64 objects.

Core Features & Use Cases

  • Vectorized Date Operations: Perform arithmetic and generate date ranges efficiently on large datasets.
  • Business Day Calculations: Accurately calculate deadlines and offsets, excluding weekends and holidays.
  • Time Delta Analysis: Easily compute and analyze durations between timestamps.
  • Use Case: Calculate the average duration of tasks that must be completed within business days, accounting for public holidays.

Quick Start

Use the numpy-datetime skill to find the date 10 business days after '2023-10-01', excluding holidays.

Frequently Asked Questions about numpy-datetime

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

FAQPage Schema
How do I calculate business days between dates in NumPy while excluding holidays?

To calculate business days in NumPy, you can use the datetime64 and timedelta64 objects to compute date offsets while excluding weekends and specified public holidays for accurate deadline tracking. This Skill handles vectorized business day calculations with holiday considerations.

What is the best way to perform vectorized date manipulation on large time-series datasets?

Vectorized date manipulation on time-series datasets is achieved by leveraging NumPy's efficient datetime64 structures to perform arithmetic and generate date ranges quickly across large arrays. This approach enables fast, naive datetime processing without Python loops.

How do I compute timedelta durations between timestamps for time-series analysis?

You compute timedelta durations between timestamps using NumPy's timedelta64 objects, which allow you to calculate and analyze elapsed time differences efficiently. This Skill supports duration analysis between timestamps for time-series evaluation.

Does NumPy datetime64 support naive datetime manipulation without timezone awareness?

Yes, NumPy datetime64 supports efficient, naive datetime manipulation without timezone awareness. This Skill requires only the numpy dependency to perform vectorized time-series analysis and date arithmetic on naive timestamps.

Can I generate date ranges and perform arithmetic on datetime64 arrays in NumPy?

Yes, you can generate date ranges and perform arithmetic on datetime64 arrays in NumPy. This Skill simplifies complex date and time manipulations for time-series data by leveraging vectorized operations on large datasets.