{ "schema_type": "object", "schema_version": "1.1", "name": "beginning_of_year", "path": "packages/ree_datetime/package/ree_datetime/functions/beginning_of_year.rb", "mount_as": "fn", "class": "ReeDatetime::BeginningOfYear", "factory": null, "methods": [ { "doc": "Returns a new date/time at the start of the year.\nIf no date_time passed returns date/time at the start of the current year.\n\n date_time(optional) => Mon, 30 Jun 2022 13:00:00\n beginning_of_year(date_time) # => Sat, 01 Jan 2022 00:00:00", "throws": [ ], "return": "DateTime", "args": [ { "arg": "date_time", "arg_type": "opt", "type": "Nilor[DateTime]" } ] } ], "links": [ { "target": "beginning_of_day", "package_name": "ree_datetime", "as": "beginning_of_day", "imports": [ ] }, { "target": "beginning_of_year", "package_name": "ree_date", "as": "beginning_of_year", "imports": [ ] }, { "target": "now", "package_name": "ree_datetime", "as": "now", "imports": [ ] } ] }