Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • T torque-postgresql
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Carlos
  • torque-postgresql
  • Wiki
  • Date Time Range

Date Time Range · Changes

Page history
Updated Date Time Range (markdown) authored Aug 18, 2019 by Carlos's avatar Carlos
Hide whitespace changes
Inline Side-by-side
Date-Time-Range.md
View page @ d64455b7
...@@ -237,13 +237,13 @@ Get the real range period while considering the threshold. ...@@ -237,13 +237,13 @@ Get the real range period while considering the threshold.
((period.min - threshold)..(period.max + threshold)) ((period.min - threshold)..(period.max + threshold))
``` ```
#### `:real_start` as `.period_real_start` #### `:real_start` as `.period_real_start` **(ONLY WITH THRESHOLD)**
Get the beginning of the period while considering the threshold. Get the beginning of the period while considering the threshold.
```ruby ```ruby
period.min - threshold period.min - threshold
``` ```
#### `:real_finish` as `.period_real_finish` #### `:real_finish` as `.period_real_finish` **(ONLY WITH THRESHOLD)**
Get the ending of the period while considering the threshold. Get the ending of the period while considering the threshold.
```ruby ```ruby
period.max + threshold period.max + threshold
......
Clone repository
  • Wiki
  • Configuring

Core Extensions

  • Range

Data types

  • Enum
  • Enum Set
  • Interval
  • Date/Time Range
  • Box
  • Circle
  • Line
  • Segment

Querying

  • Arel
  • Has Many
  • Belongs to Many
  • Dynamic Attributes
  • Distinct On
  • Auxiliary Statements
  • Inherited Tables