Table of Contents

Class StringToDatetimeCastingImpl

Namespace
NumSharp
Assembly
NumSharp.dll

The cast from a string class into datetime64 — NumPy's string_to_datetime_cast_resolve_descriptors: always unsafe; a missing destination is the generic unit (which NumPy notes "doesn't actually work, and will error during the cast"). Descriptor level only until Stage C.

public sealed class StringToDatetimeCastingImpl : CastingImpl
Inheritance
StringToDatetimeCastingImpl
Inherited Members

Methods

resolve_descriptors(DType[], DType[], out long)

The destination is the given descriptor made canonical, or the class default (generic unit); the source is used as given ("We currently support byte-swapping, so any (unicode) string is OK").

public override NPY_CASTING resolve_descriptors(DType[] givenDescrs, DType[] loopDescrs, out long viewOffset)

Parameters

givenDescrs DType[]

The string source and the requested datetime destination (may be null).

loopDescrs DType[]

Receives the descriptors the cast runs on.

viewOffset long

Always NoView.

Returns

NPY_CASTING

Always unsafe.