mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 07:16:41 +00:00
doc fixes
This commit is contained in:
@@ -51,9 +51,9 @@ validation method
|
|||||||
end
|
end
|
||||||
|
|
||||||
The list of validation methods available are as follows:
|
The list of validation methods available are as follows:
|
||||||
* validates_date - validate value as date
|
validates_date - validate value as date
|
||||||
* validates_time - validate value as time only i.e. '12:20pm'
|
validates_time - validate value as time only i.e. '12:20pm'
|
||||||
* validates_datetime - validate value as a full date and time
|
validates_datetime - validate value as a full date and time
|
||||||
|
|
||||||
The validation methods take the usual options plus some specific ones to restrict
|
The validation methods take the usual options plus some specific ones to restrict
|
||||||
the valid range of dates or times allowed
|
the valid range of dates or times allowed
|
||||||
@@ -138,8 +138,7 @@ Time formats:
|
|||||||
h-nn_ampm
|
h-nn_ampm
|
||||||
h_ampm
|
h_ampm
|
||||||
|
|
||||||
NOTE: Any time format without a meridian token (the 'ampm' token) is considered
|
NOTE: Any time format without a meridian token (the 'ampm' token) is considered in 24 hour time.
|
||||||
in 24 hour time.
|
|
||||||
|
|
||||||
Date formats:
|
Date formats:
|
||||||
yyyy/mm/dd
|
yyyy/mm/dd
|
||||||
|
|||||||
Reference in New Issue
Block a user