Sha256: 18b8ed46cda8744c0e6043bb14a0ac43d5a2c98ca8bc77bb97d483d9a40931e2

Contents?: true

Size: 1.16 KB

Versions: 71

Compression:

Stored size: 1.16 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.1",
  "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",
          "arg_type": "req",
          "type": "Or[Date, DateTime, Time]"
        },
        {
          "arg": "end_time",
          "arg_type": "req",
          "type": "Or[Date, DateTime, Time]"
        },
        {
          "arg": "opts",
          "arg_type": "keyrest",
          "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

71 entries across 71 versions & 1 rubygems

Version Path
ree_lib-1.0.63 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.62 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.61 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.60 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.59 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.58 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.57 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.56 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.55 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.54 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.53 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.52 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.51 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.50 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.49 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.48 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.47 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.46 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.45 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json
ree_lib-1.0.44 lib/ree_lib/packages/ree_datetime/schemas/ree_datetime/functions/weeks_diff.schema.json