Class: NILTIME

Inherits:
Object show all
Defined in:
lib/custom_active_record/sjis_base.rb

Constant Summary collapse

NILTIME_STRING =
"-"

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ NILTIME

Returns a new instance of NILTIME.



214
215
# File 'lib/custom_active_record/sjis_base.rb', line 214

def initialize(*args)
end

Instance Method Details

#dayObject



225
226
227
# File 'lib/custom_active_record/sjis_base.rb', line 225

def day
  return NILTIME_STRING * 2
end

#hourObject



229
230
231
# File 'lib/custom_active_record/sjis_base.rb', line 229

def hour
  return NILTIME_STRING * 2
end

#minObject



233
234
235
# File 'lib/custom_active_record/sjis_base.rb', line 233

def min
  return NILTIME_STRING * 2
end

#monthObject



221
222
223
# File 'lib/custom_active_record/sjis_base.rb', line 221

def month
  return NILTIME_STRING * 2
end

#secObject



237
238
239
# File 'lib/custom_active_record/sjis_base.rb', line 237

def sec
  return NILTIME_STRING * 2
end

#strftime(*args) ⇒ Object



241
242
243
# File 'lib/custom_active_record/sjis_base.rb', line 241

def strftime(*args)
  nil
end

#yearObject



217
218
219
# File 'lib/custom_active_record/sjis_base.rb', line 217

def year
  return NILTIME_STRING * 4
end