Sha256: f096d43915fdb63c99d6966bb651ace1f92f2dce4dffc6176f838bac4666f63d

Contents?: true

Size: 1.07 KB

Versions: 28

Compression:

Stored size: 1.07 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.0",
  "name": "weeks_diff",
  "path": "packages/ree_datetime/package/ree_datetime/functions/weeks_diff.rb",
  "mount_as": "fn",
  "class": "ReeDatetime::WeeksDiff",
  "factory": null,
  "methods": [
    {
      "doc": "Returns time difference in weeks (7 days range)",
      "throws": [
        "ArgumentError"
      ],
      "return": "Integer",
      "args": [
        {
          "arg": "start_time",
          "type": "Or[Date, DateTime, Time]"
        },
        {
          "arg": "end_time",
          "type": "Or[Date, DateTime, Time]"
        },
        {
          "arg": "opts",
          "type": "Ksplat[:round_mode? => Or[up, down, truncate, half_up, default, half_down, half_even, banker, ceiling, floor]]"
        }
      ]
    }
  ],
  "links": [
    {
      "target": "round_helper",
      "package_name": "ree_number",
      "as": "round_helper",
      "imports": [
        "ROUND_MODES"
      ]
    },
    {
      "target": "slice",
      "package_name": "ree_hash",
      "as": "slice",
      "imports": [

      ]
    }
  ]
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ree_lib-1.0.11 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.10 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.9 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.8 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.7 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.6 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.5 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.4 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json