Skip to content

Tessero\Datetime\Datetime

← All classes

AI assistant

Build this with Claude Code, Cursor or Copilot

Copy a Tessero-tuned prompt for Tessero\Datetime\Datetime, grounded in 8 real API signatures , into your IDE's AI. No chatbot, just exact context.

datetime64 static
datetime64(array|string $value, string $unit = 'D'): array|int

numpy.datetime64: parse an ISO date/time (or array of them) to int64 counts at $unit (default 'D').

timedelta64 static
timedelta64(string|int $value, string $unit = 's'): int

numpy.timedelta64: the magnitude as an int64 count of the unit (NaT passes through).

datetimeData static
datetimeData(string $dtype): array

numpy.datetime_data: the (base unit, step) of a datetime64 unit spec such as 's', '10m' or 'datetime64[10m]'.

isnat static
isnat(array|int $counts): array|bool

numpy.isnat: which counts are NaT (INT64_MIN).

isBusday static
isBusday(array|string $dates, string $weekmask = '1111100', array $holidays = []): array|bool

numpy.is_busday.

busdayCount static
busdayCount(string $begin, string $end, string $weekmask = '1111100', array $holidays = []): int

numpy.busday_count: business days in the half-open interval [begin, end).

busdayOffset static
busdayOffset(string $date, int $offset, string $roll = 'raise', string $weekmask = '1111100', array $holidays = []): int

numpy.busday_offset: offset a date by a number of business days, returning the day number.

datetimeAsString static
datetimeAsString(array|int $counts, string $unit = 'D'): array|string

numpy.datetime_as_string: format int64 counts at $unit back to ISO strings.