We're updating the issue view to help you get more done.Learn more

Duration constraints

I need to be able to limit the time units used in a duration. One example is the
duration of a pregnancy (or gestation) which is described in weeks and days only -
never months or hours. So it is necessary to restrict the duration characters to W
(for weeks) and D (for days) - where the possible are YMD(T)HMS - where T is the
separator for the time part of the duration. Restricting the time part will require
the THM - or for minutes will be TM.

Status

Assignee

JeffJ

Reporter

(Sam Heard) inactive

Change Description

Changes made: DURATION matches CONSTRAINT_STRING where CONSTRAINT_STRING matches P[Y][M][W][D][T[H][M][S]] Examples: Durations of weeks and days allowed with constraint matching 'WD' Durations with hours and minutes allowed with constraint matching "THM"

Approved By

PG

Components

Fix versions

Priority

Minor