Class: Date
- Defined in:
- lib/decentworks/hexdigest_support/date.rb,
sig/decentworks/hexdigest_support/date.rbs
Instance Method Summary collapse
-
#to_hexdigest_source ⇒ ::String
ハッシュ値を求めるためのオリジナルの値.
Instance Method Details
#to_hexdigest_source ⇒ ::String
ハッシュ値を求めるためのオリジナルの値
MEMO: 日付は時刻もタイムゾーンも持たないため、Timeのような正規化は不要。 ISO 8601の日付として組み立てる
MEMO: 型は"Date"のまま(TimeLikeをincludeしない)。DateはTimeと違って ある一瞬ではなく1日を指すため、同一視すると意味が壊れる
15 |
# File 'lib/decentworks/hexdigest_support/date.rb', line 15 def to_hexdigest_source = strftime("%Y-%m-%d") |