termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.33k stars 3.07k forks source link

[Package]: dateutils #19109

Closed JacksonChen666 closed 7 months ago

JacksonChen666 commented 9 months ago

Why is it worth to add this package?

dateutils is a collection of command line tools for date related stuff. The dateutils tools could be used in shell scripts when dealing with dates, or just in general on the command line.

Home page URL

https://www.fresse.org/dateutils/

Source code URL

https://github.com/hroptatyr/dateutils

Packaging policy acknowledgement

Additional information

No response

TomJo2000 commented 9 months ago

How exactly does this improve on the functionality of the standard date command from coreutils?

I don't foresee this being particularly complicated to package, but it seems like a crutch for not learning how to use the standard version of date properly. Unless I'm missing something this doesn't add any functionality that date and maybe some basic control flow couldn't provide.

TomJo2000 commented 8 months ago

Upon further contemplation, eh yeah this is actually widely packaged and provides some nice utilities. I guess I can give compiling it a try.

jarofromel commented 7 months ago

I'd like to add my voice as well. Dateutils simplifies many useful datetime operations over the range of different datetime formats (and while many of these operations can be done by common utils like date and printf, the usage of dateutils makes it more readable with less code). To be more specific datediff, dateround, strptime have shown their value in my use case (I started with the common utils in my mind but ended with dateutils). Also the package seems to me as very good from the point of code quality (history, maintainer, commit frequency).

TomJo2000 commented 7 months ago

Right, I assigned myself the issue so I wouldn't forget about it. Went on vacation. And promptly forgot about it.

Sorry about that. I'll see about getting it building.

jarofromel commented 7 months ago

Thanks a lot @TomJo2000 for your work!

TomJo2000 commented 7 months ago

Biswa got it working.