influxdata / influxdata/influxdb

add time operator today()

Open
#7,329 47 comments 35 reactions 0 assignees View on GitHub
1.x kind/feature-request RFC
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

### Feature Request

**Proposal:** [Description of the feature]

`today()` is a shortcut to midnight UTC of the current day. E.g. if it is September 19th, 2016, then `today()` returns `2016-09-16T00:00:00Z`

**Use case:** [Why is this important (helps with prioritizing requests)]

Was brought up as a desired feature in the Austin 1-day class.

@desa can you elaborate?

Contributor guide

Open the contributing guide

Research direction

The issue names no implementation files, entry points, or tests. Start by locating the query-language operator and existing date/time function tests, then review the unresolved comment discussion before choosing an approach. Done means the agreed today() behavior is implemented and covered by tests, including its UTC-midnight result.

Written by the indexing model from the issue text.

Assessment

Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.