termux-packages icon indicating copy to clipboard operation
termux-packages copied to clipboard

[Package]: dateutils

Open JacksonChen666 opened this issue 1 year ago • 1 comments

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

  • [X] I certify that I have read Termux Packaging Policy and understand that my request will be denied in case of violation.

Additional information

No response

JacksonChen666 avatar Jan 31 '24 22:01 JacksonChen666

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 avatar Jan 31 '24 23:01 TomJo2000

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

TomJo2000 avatar Feb 27 '24 15:02 TomJo2000

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).

jarofromel avatar Apr 08 '24 08:04 jarofromel

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.

TomJo2000 avatar Apr 08 '24 12:04 TomJo2000

Thanks a lot @TomJo2000 for your work!

jarofromel avatar Apr 09 '24 08:04 jarofromel

Biswa got it working.

TomJo2000 avatar Apr 09 '24 10:04 TomJo2000