Changeset 84498 in vbox for trunk/src/VBox/ValidationKit/testmanager/core
- Timestamp:
- May 25, 2020 1:00:24 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 138226
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/base.py
r84271 r84498 616 616 617 617 @staticmethod 618 def validateTs(sValue, aoNilValues = tuple([None, '']), fAllowNull = True ):618 def validateTs(sValue, aoNilValues = tuple([None, '']), fAllowNull = True, fRelative = False): 619 619 """ Validates a timestamp field. """ 620 620 if sValue in aoNilValues: … … 653 653 iHour = int(oRes.group(4)); 654 654 iSec = int(oRes.group(5)); 655 if iMonth > 12 or iMonth <= 0:655 if iMonth > 12 or (iMonth <= 0 and not fRelative): 656 656 sError = 'Invalid timestamp month.'; 657 657 elif iDay > acDaysOfMonth[iMonth - 1]:
Note:
See TracChangeset
for help on using the changeset viewer.