Class: SequelZeroTime
Instance Method Summary
collapse
Methods inherited from String
#adjective, #blank?, #capitalize, #commaize, #content_length, #headercase, #html_escape, #original_sequel_titlecase, #original_sequel_underscore, #prepend_html, random, #remove_tags, #titlecase, #to_const, #underscore, #unless_blank, #unless_equal_to, #url_escape, #url_unescape, #validate
Constructor Details
#initialize(value = '0000-00-00 00:00', *args, &block) ⇒ SequelZeroTime
Returns a new instance of SequelZeroTime.
382
383
384
|
# File 'lib/kiss/model.rb', line 382
def initialize(value = '0000-00-00 00:00', *args, &block)
super(value, *args, &block)
end
|
Instance Method Details
387
388
389
|
# File 'lib/kiss/model.rb', line 387
def +(*args)
self
end
|
390
391
392
|
# File 'lib/kiss/model.rb', line 390
def -(*args)
self
end
|
404
405
406
|
# File 'lib/kiss/model.rb', line 404
def <(value)
return true
end
|
#<=(value) ⇒ Object
407
408
409
|
# File 'lib/kiss/model.rb', line 407
def <=(value)
return true
end
|
#==(value) ⇒ Object
395
396
397
|
# File 'lib/kiss/model.rb', line 395
def ==(value)
(value == 0 || value.is_a?(SequelZeroTime)) ? true : false
end
|
398
399
400
|
# File 'lib/kiss/model.rb', line 398
def >(value)
return false
end
|
#>=(value) ⇒ Object
401
402
403
|
# File 'lib/kiss/model.rb', line 401
def >=(value)
(value == 0 || value.is_a?(SequelZeroTime)) ? true : false
end
|
#from_timezone(zone) ⇒ Object
420
421
422
|
# File 'lib/kiss/model.rb', line 420
def from_timezone(zone)
self
end
|
454
|
# File 'lib/kiss/model.rb', line 454
def hm; ''; end
|
458
|
# File 'lib/kiss/model.rb', line 458
def hm_mdy; ''; end
|
#hm_mdy_full ⇒ Object
Also known as:
hm_mdy_long
462
|
# File 'lib/kiss/model.rb', line 462
def hm_mdy_full; ''; end
|
456
|
# File 'lib/kiss/model.rb', line 456
def hms; ''; end
|
460
|
# File 'lib/kiss/model.rb', line 460
def hms_mdy; ''; end
|
457
|
# File 'lib/kiss/model.rb', line 457
def hmsz; ''; end
|
461
|
# File 'lib/kiss/model.rb', line 461
def hmsz_mdy; ''; end
|
455
|
# File 'lib/kiss/model.rb', line 455
def hmz; ''; end
|
459
|
# File 'lib/kiss/model.rb', line 459
def hmz_mdy; ''; end
|
#hmz_mdy_full ⇒ Object
Also known as:
hmz_mdy_long
464
|
# File 'lib/kiss/model.rb', line 464
def hmz_mdy_full; ''; end
|
#in_between?(*args) ⇒ Boolean
469
|
# File 'lib/kiss/model.rb', line 469
def in_between?(*args); false; end
|
435
|
# File 'lib/kiss/model.rb', line 435
def md; ''; end
|
#md_full ⇒ Object
Also known as:
md_long
436
|
# File 'lib/kiss/model.rb', line 436
def md_full; ''; end
|
438
|
# File 'lib/kiss/model.rb', line 438
def mdy; ''; end
|
#mdy_full ⇒ Object
Also known as:
mdy_long
439
|
# File 'lib/kiss/model.rb', line 439
def mdy_full; ''; end
|
441
|
# File 'lib/kiss/model.rb', line 441
def mdy_hm; ''; end
|
#mdy_hm_full ⇒ Object
Also known as:
mdy_hm_long
450
|
# File 'lib/kiss/model.rb', line 450
def mdy_hm_full; ''; end
|
443
|
# File 'lib/kiss/model.rb', line 443
def mdy_hms; ''; end
|
444
|
# File 'lib/kiss/model.rb', line 444
def mdy_hmsz; ''; end
|
442
|
# File 'lib/kiss/model.rb', line 442
def mdy_hmz; ''; end
|
#mdy_hmz_full ⇒ Object
Also known as:
mdy_hmz_long
452
|
# File 'lib/kiss/model.rb', line 452
def mdy_hmz_full; ''; end
|
#set_timezone!(zone, utc) ⇒ Object
417
418
419
|
# File 'lib/kiss/model.rb', line 417
def set_timezone!(zone, utc)
self
end
|
449
|
# File 'lib/kiss/model.rb', line 449
def sql; '0000-00-00 00:00'; end
|
#strftime(*args) ⇒ Object
434
|
# File 'lib/kiss/model.rb', line 434
def strftime(*args); ''; end
|
412
|
# File 'lib/kiss/model.rb', line 412
def to_f; 0; end
|
413
|
# File 'lib/kiss/model.rb', line 413
def to_i; 0; end
|
414
|
# File 'lib/kiss/model.rb', line 414
def to_s; ''; end
|
#to_timezone(zone) ⇒ Object
423
424
425
|
# File 'lib/kiss/model.rb', line 423
def to_timezone(zone)
self
end
|
426
427
428
|
# File 'lib/kiss/model.rb', line 426
def to_utc
self
end
|
445
|
# File 'lib/kiss/model.rb', line 445
def ymd_hm; ''; end
|
447
|
# File 'lib/kiss/model.rb', line 447
def ymd_hms; ''; end
|
448
|
# File 'lib/kiss/model.rb', line 448
def ymd_hmsz; ''; end
|
446
|
# File 'lib/kiss/model.rb', line 446
def ymd_hmz; ''; end
|
#zero? ⇒ Boolean
467
|
# File 'lib/kiss/model.rb', line 467
def zero?; true; end
|
429
430
431
|
# File 'lib/kiss/model.rb', line 429
def zone
''
end
|