Method: Wavefront::Validators#wf_ts?
- Defined in:
- lib/wavefront-sdk/validators.rb
#wf_ts?(timestamp) ⇒ Boolean
Ensure the given argument is a valid timestamp
97 98 99 100 101 |
# File 'lib/wavefront-sdk/validators.rb', line 97 def wf_ts?() return true if .is_a?(Time) || .is_a?(Date) raise Wavefront::Exception::InvalidTimestamp, end |