@@ -767,7 +767,7 @@ XDI_validate_item(XDIFile *xdifile, char *family, char *name, char *value) {
767
767
768
768
769
769
/***************************************************************************/
770
- /* all tests in the Facility familty should return WRN_BAD_FACILITY if the */
770
+ /* all tests in the Facility family should return WRN_BAD_FACILITY if the */
771
771
/* value does not match the definition. error_message should explain */
772
772
/* the problem in a way that is appropruiate to the metadata item */
773
773
/***************************************************************************/
@@ -821,7 +821,7 @@ int XDI_validate_mono(XDIFile *xdifile, char *name, char *value) {
821
821
}
822
822
823
823
/***********************************************************************/
824
- /* all tests in the Sample familty should return WRN_BAD_SAMPLE if the */
824
+ /* all tests in the Sample family should return WRN_BAD_SAMPLE if the */
825
825
/* value does not match the definition. error_message should explain */
826
826
/* the problem in a way that is appropruiate to the metadata item */
827
827
/***********************************************************************/
@@ -849,11 +849,12 @@ int XDI_validate_sample(XDIFile *xdifile, char *name, char *value) {
849
849
}
850
850
851
851
852
+ /**************************************************************/
853
+ /* tests if input string is a valid datetime timestamp. */
854
+ /* This uses regular expression to check format and validates */
855
+ /* range of values, though not exhaustively. */
856
+ /**************************************************************/
852
857
int xdi_is_datestring (char * inp ) {
853
- /* tests if input string is a valid datetime timestamp.
854
- This uses regular expression to check format and validates
855
- range of values, though not exhaustively.
856
- */
857
858
int regex_status ;
858
859
struct slre_cap caps [6 ];
859
860
int year , month , day , hour , minute , sec ;
0 commit comments