Live data from Hacker News

Bttf is a command line datetime Swiss army knife

github.com

51–60 of 104 posts

Re: Bttf is a command line datetime Swiss army knife

#51

Earlier quoted context omitted.

https://crates.io/search?q=bttf // backronym bttf stands for biff time to format

You win the naming contest. The project has been renamed: https://github.com/BurntSushi/bttf/pull/14

@dang - Could you update the post title please to say "bttf" instead of "Biff"? Thank you!

Re: Bttf is a command line datetime Swiss army knife

#52

been hand-rolling date -d plus a wrapper script for newsletter scheduling for years. Stuff like "next second Tuesday after a holiday" and "convert these timestamps to a reader's local time before send". biff time seq monthly -w 2-tue would have replaced about 40 lines of bash for me.

Yes!!! To spell it out (with the new biff -> bttf name): $ bttf time seq monthly -w 2-tue -u 1y | bttf time fmt -f '%c' Tue, Jun 9, 2026, 11:15:11 AM EDT Tue, Jul 14, 2026, 11:15:11 AM EDT Tue, Aug 11, 2026, 11:15:11 AM EDT Tue, Sep 8, 2026, 11:15:11 AM EDT Tue, Oct 13, 2026, 11:15:11 AM EDT Tue, Nov 10, 2026, 11:15:11 AM EST Tue, Dec 8, 2026, 11:15:11 AM EST Tue, Jan 12, 2027, 11:15:11 AM EST Tue, Feb 9, 2027, 11:15…

I implemented those recursion rules (probably very poorly) years ago. I still often think about the ways I did and probably should have handled those. It was an interesting problem.

Re: Bttf is a command line datetime Swiss army knife

#53

Earlier quoted context omitted.

Yeah the name collision is unfortunate, but probably fine. The name Biff was just too good to pass up. The name comes from the fact that Biff is a character in Back to the Future, and it rhymes with Jiff[1]. Jiff is the datetime library that Biff uses. "Make like a tree and get out of here!" https://www.youtube.com/shorts/9Jabplo2pZU [1]: https://github.com/BurntSushi/jiff

As the author of a different project also named Biff, I do have to warn you that half the comments on your HN posts will be people quoting back to the future--though I haven't decided yet if that's annoying or an engagement hack! [1] https://github.com/jacobobryant/biff

Back to the Future jokes never get old. I love it.

I still want one of those hover boards!

Re: Bttf is a command line datetime Swiss army knife

#54
post #41

Earlier quoted context omitted.

This is a fair critique actually. And this shouldn't be the default. It is for now because I haven't gotten around to making Biff read your POSIX locale settings and converting them to a Unicode locale. If you build with `cargo build --release --features locale` (or get Biff from a release binary), then you can do: $ BIFF_LOCALE=en-US biff Thu, May 28, 2026, 6:38:09 AM EDT If that doesn't work, then you can enable lo…

I came here to complain about this. Please read `LANG` like everything else :)

Oh yes definitely. Was always the plan. I was honestly just hoping someone would publish a crate to do that for me.

To be clear, I don't mean publishing a crate to read an environment variable. Of course. I mean a crate that converts a POSIX locale into a Unicode locale.

I guess there's probably a 20% solution that gets 80% of the way there. e.g.,

    $ BTTF_LOCALE="$(echo $LANG | sed 's/_/-/' | sed 's/\..*//')" bttf
    Thu, May 28, 2026, 11:46:21 AM EDT
If Biff just did that as a stop-gap until the full solution lands, I bet it would work in lots of cases.

Re: Bttf is a command line datetime Swiss army knife

#55
post #40

Earlier quoted context omitted.

Yeah the name collision is unfortunate, but probably fine. The name Biff was just too good to pass up. The name comes from the fact that Biff is a character in Back to the Future, and it rhymes with Jiff[1]. Jiff is the datetime library that Biff uses. "Make like a tree and get out of here!" https://www.youtube.com/shorts/9Jabplo2pZU [1]: https://github.com/BurntSushi/jiff

> Yeah the name collision is unfortunate, but probably fine. collisions, lol % apt-cache search biff biff - a mail notification tool gnubiff - mail notification program for GNOME (and others) wmbiff - Dockable app that displays information about mailboxes xlbiff - mail notification pop-up with configurable message scans (along with 9 more matches without biff in command name)

Those are:

1. Not precise name collisions.

2. All mail-notification utilities, as was the original biff.

And since we're mentioning Debian, it has a policy requiring unique names within the Debian archive to be unique. Precedence goes to the earlier software packaged. Installed programs must also have unique names within a given system. The datetime Swiss army knife utility discussed here violates both policies.

As Debian policy is used both for Debian and derived distros (see: https://en.wikipedia.org/wiki/List_of_Linux_distributions#De...> for a partial listing), it has considerable influence.

Re: Bttf is a command line datetime Swiss army knife

#56

Earlier quoted context omitted.

Yeah the name collision is unfortunate, but probably fine. The name Biff was just too good to pass up. The name comes from the fact that Biff is a character in Back to the Future, and it rhymes with Jiff[1]. Jiff is the datetime library that Biff uses. "Make like a tree and get out of here!" https://www.youtube.com/shorts/9Jabplo2pZU [1]: https://github.com/BurntSushi/jiff

> Yeah the name collision is unfortunate, but probably fine. The name Biff was just too good to pass up. So if I do an "apt install biff" on Debian (or Ubuntu) what will happen? * https://packages.debian.org/search?keywords=biff If I type in "biff" on a Debian CLI, what should I expect the behaviour of the program that is executed to be? Will it be something about mail or time?

Per Debian policy and precedence of the email notification utility, you'll install biff, the command-line email notification utility:

https://www.debian.org/doc/debian-policy/ch-binary.html#the-...>

https://packages.debian.org/trixie/biff>

Re: Bttf is a command line datetime Swiss army knife

#57
post #23

Earlier quoted context omitted.

Yeah the name collision is unfortunate, but probably fine. The name Biff was just too good to pass up. The name comes from the fact that Biff is a character in Back to the Future, and it rhymes with Jiff[1]. Jiff is the datetime library that Biff uses. "Make like a tree and get out of here!" https://www.youtube.com/shorts/9Jabplo2pZU [1]: https://github.com/BurntSushi/jiff

It was a great opportunity to name a unix tool "mcfly" or just "Marty" for time manipulation. Better luck next time, I guess.

docbrown would be more appropriate, as the character who's actually doing the time manipulation.

Re: Bttf is a command line datetime Swiss army knife

#58
post #40

Earlier quoted context omitted.

> Yeah the name collision is unfortunate, but probably fine. collisions, lol % apt-cache search biff biff - a mail notification tool gnubiff - mail notification program for GNOME (and others) wmbiff - Dockable app that displays information about mailboxes xlbiff - mail notification pop-up with configurable message scans (along with 9 more matches without biff in command name)

Those are: 1. Not precise name collisions. 2. All mail-notification utilities, as was the original biff. And since we're mentioning Debian, it has a policy requiring unique names within the Debian archive to be unique. Precedence goes to the earlier software packaged. Installed programs must also have unique names within a given system. The datetime Swiss army knife utility discussed here violates both policies. As D…

I've renamed the project to bttf :-)

Re: Bttf is a command line datetime Swiss army knife

#59

Earlier quoted context omitted.

Those are: 1. Not precise name collisions. 2. All mail-notification utilities, as was the original biff. And since we're mentioning Debian, it has a policy requiring unique names within the Debian archive to be unique. Precedence goes to the earlier software packaged. Installed programs must also have unique names within a given system. The datetime Swiss army knife utility discussed here violates both policies. As D…

I've renamed the project to bttf :-)

That works on Debian ;-)

https://packages.debian.org/search?keywords=bttf>

Might want to ping the mods (hn@ycombinator.com) to update this submission title.

Edit: I'd typoed "bttf" as "btff" initially. Corrected shows partial but not exact matches on "libttfautohint1" and variants.

Re: Bttf is a command line datetime Swiss army knife

#60
post #23

Earlier quoted context omitted.

It was a great opportunity to name a unix tool "mcfly" or just "Marty" for time manipulation. Better luck next time, I guess.

That's... not terrible. Biff isn't exactly popular (yet?), so a name change isn't out of the question. Both of those names (and `biff`) are already taken on crates.io. Which is maybe not a huge problem. IDK. Naming is hard.

Naming is hard, sure, but doing some due diligence up front to see what's already being used isn't very difficult. Very neat tool.
Post reply on HN