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.32 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.31 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.30 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.29 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.28 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.27 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.26 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.24 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.23 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.22 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.21 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.20 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.19 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.18 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.17 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.16 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.15 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.14 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.13 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.12 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json