JetBrains / JetBrains/Exposed

Support time math

Open
#1,664 1 comment 6 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
9.3k
Forks
798
Avg merge
4d 2h
Merged PRs (30d)
26

Description

There are a number of time math functions, that while supported in Kotlin and commonly in databases (I don't know exactly how prevalent they are, but I suspect very), aren't possible to express in Exposed without resorting to custom functions.

For example ` + * `.

Currently, arithmetic ops on time types require using the same type, which can get a bit non-sensical.

I think the two primary ops that would be good to have are ` +|- ` and ` *|/ `

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.