[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: [ddlm-group] Minor change to DateTime DDLm type
- To: james.r.hester@gmail.com, Group finalising DDLm and associated dictionaries<ddlm-group@mailman.iucr.org>
- Subject: Re: [ddlm-group] Minor change to DateTime DDLm type
- From: "Herbert J. Bernstein" <yayahjb@gmail.com>
- Date: Thu, 1 May 2025 05:46:08 -0400
- Cc: ddlm-group <ddlm-group@iucr.org>
- DMARC-Filter: OpenDMARC Filter v1.3.2 mailserver.iucr.org BAE2B5A16DB
- In-Reply-To: <CAM+dB2f025Kfi=_chOvh6774z=D=_FT2209eKwLm7TPJSsBTcA@mail.gmail.com>
- References: <CAM+dB2f025Kfi=_chOvh6774z=D=_FT2209eKwLm7TPJSsBTcA@mail.gmail.com>
I think this needs thoughtful discussion. In these days of computers, it really does not take any extra effort to put in the full and accurate timestamp and there will be times when it matters. I know people will make mistakes and do things incompletely, but should we encourage them in being sloppy?
On Wed, Apr 30, 2025 at 10:55 PM James H <jamesrhester@gmail.com> wrote:
_______________________________________________Dear DDLm group,The DateTime option for DDLm `_type.contents` encapsulates a date and time according to RFC3339, so something like 1996-12-19T16:39:57-08:00It seems that sometimes a Date is not enough, but a full time including seconds is too much. CIFs in the wild missing seconds have been encountered by the COD, see https://projects.ibt.lt/repositories/issues/1713. This strictly violates the expected syntax.The tidiest solution would be to allow minutes and seconds, or just seconds, to be dropped from the timestamp. This would be a slight expansion of the syntax of DateTime in the DDLm `_type.contents` data name, which may have ramifications for software that has been written to expect a full DateTime.Defining a new type, e.g. `PartialDateTime`, doesn't actually improve the situation because dictionary definitions wanting to adopt the more liberal timestamp would also have to be changed. Defining a new type only makes sense if we are happy to add new definitions to the dictionaries to supersede those that use the old type.Would this group endorse expanding the acceptable syntaxes of DateTime? See also Github discussion at https://github.com/COMCIFS/cif_core/issues/523.thanks,James.--T +61 (02) 9717 9907
F +61 (02) 9717 3145
M +61 (04) 0249 4148
ddlm-group mailing list
ddlm-group@mailman.iucr.org
https://mailman.iucr.org/cgi-bin/mailman/listinfo/ddlm-group
_______________________________________________ ddlm-group mailing list ddlm-group@mailman.iucr.org https://mailman.iucr.org/cgi-bin/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
- Follow-Ups:
- Re: [ddlm-group] Minor change to DateTime DDLm type (Antanas Vaitkus)
- References:
- Prev by Date: [ddlm-group] Minor change to DateTime DDLm type
- Next by Date: Re: [ddlm-group] Minor change to DateTime DDLm type
- Prev by thread: [ddlm-group] Minor change to DateTime DDLm type
- Next by thread: Re: [ddlm-group] Minor change to DateTime DDLm type
- Index(es):