gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] restrictions vs. conventions (uncertain date-time)


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] restrictions vs. conventions (uncertain date-time)
Date: Mon, 9 Sep 2013 12:39:24 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Aug 25, 2013 at 11:30:01AM +0200, Karsten Hilbert wrote:

> > > which I notice cannot currently be auto-computed in
> > > 
> > >   date started (for medications)
> > > 
> > > as this currently supports to go back only 99 years, which if inputting 
> > > -99y offers
> > > 
> > >   Monday, 24 August, 1914
> > 
> > is it a lot of work to revise the GNUmed datetime processor to allow to 
> > calculate 150y?
> 
> I will look into this. I hadn't thought it wasn't already
> possible.

Indeed, the parser restricted matches to

        ^(\+|-)?(\s|\t)*\d{1,2}(\s|\t)*[hdwmy]$

which I now relaxed to

        ^(\+|-)?(\s|\t)*\d{1,3}(\s|\t)*[hdwmy]$

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

[Prev in Thread] Current Thread [Next in Thread]