openMINDS_core icon indicating copy to clipboard operation
openMINDS_core copied to clipboard

Introduce "_formats": "year"

Open UlrikeS91 opened this issue 4 years ago • 3 comments

@olinux, could we create a new "custom" format for year? At the moment, we us a regular expression (([0-9]{4})) for the property "year" in the copyright schema because draft-07 doesn't have this as a regular format (only date and/or time).

This would mean some changes to the generator as well ;)

UlrikeS91 avatar Mar 04 '21 16:03 UlrikeS91

This can be postponed to a later point. But good to keep open for now.

UlrikeS91 avatar Aug 24 '21 09:08 UlrikeS91

@olinux it would be good to receive your input here.

lzehl avatar Jul 26 '22 12:07 lzehl

This topic got revived. There are several fields where it would be an advantage to give a bit more flexibility in what is provided than just datetime or date.

My suggestion would be to keep a list of the following for date/datetime/time:

  • yyyy
  • MM/yyyy
  • dd/MM/yyyy
  • dd/MM/yyyy HH:mm (?)
  • dd/MM/yyyy HH:mm:ss (?)
  • dd/MM/yyyy HH:mm:ss.SSS
  • HH:mm (?)
  • HH:mm:ss (?)
  • HH:mm:ss.SSS

lzehl avatar Aug 05 '24 15:08 lzehl