Sha256: 160a3f2d866dcceb3c4142520dee1fe04d52b5354eed0421d3abe861106b360b
Contents?: true
Size: 1.41 KB
Versions: 28
Compression:
Stored size: 1.41 KB
Contents
{ "schema_type": "object", "schema_version": "1.0", "name": "prev_occurring", "path": "packages/ree_datetime/package/ree_datetime/functions/prev_occurring.rb", "mount_as": "fn", "class": "ReeDatetime::PrevOccurring", "factory": null, "methods": [ { "doc": "Returns a new date/time representing the previous occurrence of the specified day of week.\n\n now # => Tue, 24 May 2022 13:15:20\n date_time (optional) # => Wed, 6 Apr 2022 13:15:20\n prev_occurring(date_time, :monday) # => Mon, 28 Mar 2022 13:15:20\n prev_occurring(date_time, :thursday) # => Thu, 31 Mar 2022 13:15:20\n prev_occurring(:thursday) # => Thu, 19 May 2022 13:15:20", "throws": [ ], "return": "DateTime", "args": [ { "arg": "date_time", "type": "Nilor[DateTime]" }, { "arg": "week_day", "type": "Or[monday, tuesday, wednesday, thursday, friday, saturday, sunday]" } ] } ], "links": [ { "target": "change", "package_name": "ree_datetime", "as": "change", "imports": [ ] }, { "target": "now", "package_name": "ree_datetime", "as": "now", "imports": [ ] }, { "target": "prev_occurring", "package_name": "ree_date", "as": "prev_occurring", "imports": [ ] } ] }
Version data entries
28 entries across 28 versions & 1 rubygems