numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
20 stars 7 forks source link

Provide a `today()` function #266

Closed numere-bot closed 4 weeks ago

numere-bot commented 1 month ago

DESCRIPTION

Describe, what you observe or want to be changed: We're lacking a function for easily getting the current date. It is possible to get the current time-point via time(), and you can also extract single values using the date() function, but it's hard to use date() to replicate something like today().

Describe, what you expect to happen: Provide a function today(), which will return the current date as date-time value, just if the user had used as_date() and typed out the corresponding numbers.


DEVS' SECTION

ANALYSIS

Kind of self-explanatory feature. Just convert the current time to a time stamp instance, set hours and smaller to zero and convert that back to a sys_time_point.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST