Sha256: fef7b49e5f1d7622b07e3b6c7b1b5738a53e485715fa803e3deb543da1512715
Contents?: true
Size: 1.48 KB
Versions: 71
Compression:
Stored size: 1.48 KB
Contents
{ "schema_type": "object", "schema_version": "1.1", "name": "end_of_week", "path": "packages/ree_datetime/package/ree_datetime/functions/end_of_week.rb", "mount_as": "fn", "class": "ReeDatetime::EndOfWeek", "factory": null, "methods": [ { "doc": "Returns a new date/time at the end of the week.\nIf no date_time passed returns date/time at the end of the current week.\n\n date_time(optional) => Wed, 25 May 2022 13:00:00\n end_of_week(date_time, :monday) # => Sun, 29 May 2022 23:59:59.999999\n end_of_week(date_time, :sunday) # => Sat, 28 May 2022 23:59:59.999999\nWeek is assumed to end on +week_start+ (monday or sunday).", "throws": [ ], "return": "DateTime", "args": [ { "arg": "date_time", "arg_type": "opt", "type": "Nilor[DateTime]" }, { "arg": "week_start", "arg_type": "req", "type": "Or[sunday, monday]" } ] } ], "links": [ { "target": "change", "package_name": "ree_datetime", "as": "change", "imports": [ ] }, { "target": "end_of_day", "package_name": "ree_datetime", "as": "end_of_day", "imports": [ ] }, { "target": "end_of_week", "package_name": "ree_date", "as": "end_of_week", "imports": [ ] }, { "target": "now", "package_name": "ree_datetime", "as": "now", "imports": [ ] } ] }
Version data entries
71 entries across 71 versions & 1 rubygems