Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • zeitgeist zeitgeist
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 19
    • Issues 19
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ZeitGeist
  • zeitgeistzeitgeist
  • Issues
  • #6
Closed
Open
Created May 31, 2018 by Manish Sinha@manishMaintainer

TimeRange.intersect name is cryptic

Submitted by Manish Sinha @manish

Assigned to zeitgeist-bugs@lists.freedesktop.org

Link to original bug (#62086)

Description

libzeitgeist-2.0 has a new method in libzeitgeist-2.0

public TimeRange? intersect (TimeRange time_range) Check whether two time ranges are intersecting.

OPTION1: Either the doc should be

"Find the intersection of two TimeRange. If two TimeRange don't intersect, then null is returned"

OR OPTION2:

the method should be

public bool does_intersect (TimeRange time_range)

if you want to keep the documentation since the documentation for this method starts with "Check whether....", when you check, it should return a boolean value.


I guess the first one makes sense.

Version: 0.9.x

Edited May 31, 2018 by Bugzilla Migration User
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking