time/timestamp-1.0.0¶
Represents an instance in time.
Outline
Schema Definitions ¶
This type is an object with the following properties:
- value
string Required String or integer representation of the timestamp in full ISO format.No length restrictionMust match the following pattern:[0-9]{4}-(0[1-9])|(1[0-2])-(0[1-9])|([1-2][0-9])|(3[0-1])[T ]([0-1][0-9])|(2[0-4]):[0-5][0-9]:[0-5][0-9](.[0-9]+)?
- tz
string String representation of the timezone in pandas compatible format.No length restriction
Original Schema ¶
%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://weldx.bam.de/schemas/weldx/time/timestamp-1.0.0"
tag: "tag:weldx.bam.de:weldx/time/timestamp-1.0.0"
title: |
Represents an instance in time.
type: object
properties:
value:
description: |
String or integer representation of the timestamp in full ISO format.
type: string
pattern: "[0-9]{4}-(0[1-9])|(1[0-2])-(0[1-9])|([1-2][0-9])|(3[0-1])[T ]([0-1][0-9])|(2[0-4]):[0-5][0-9]:[0-5][0-9](.[0-9]+)?"# pattern string does not seem to work correctly.. ?
# the pattern is taken from asdf time but incomplete, still keep it for now
# maybe convert the following: https://www.myintervals.com/blog/2009/05/20/iso-8601-date-validation-that-doesnt-suck/
tz:
description: |
String representation of the timezone in pandas compatible format.
type: string
required: [value]
propertyOrder: [value, tz]
...