zackradisic / aussieplusplus

Programming language from down under
aussieplusplus.vercel.app
609 stars 15 forks source link

Arse-backward US date format? Faark! #11

Closed ian-barnes closed 2 years ago

ian-barnes commented 2 years ago

Urgently needs a fix in the GimmeTime function. The sample program time.aussie:

G'DAY MATE!

IMPOHT ME FUNC GimmeTime;

GIMME "the time in sydney is: " + GimmeTime();

produces

the time in sydney is: 10/30/2021, 12:14:29 AM

If I get a chance this weekend I'll have a look at the source and submit a patch.

jwfxpr commented 2 years ago

Yeah nah that's farked mate

zackradisic commented 2 years ago

Strewth! thanks for catching the fuckup ya beauty! should be fixed now

ian-barnes commented 2 years ago

Noice!

Saves me learning enough Rust to fix it myself. Although I did think of changing it say something along the lines of "about half past two mate"

jwfxpr commented 2 years ago

I would actually love it if GimmeTime() returned a rough time (e.g. "about a quarter to six")! That's brilliant. Worth creating a new issue for the idea @ian-barnes

ian-barnes commented 2 years ago

On reflection, and being a bit of a lazy bastard, I think I'd be perfectly happy with a native Aussie++ time function something like this:

THE HARD YAKKA FOR gimmeStrayanTime IS () <
    BAIL "Time for a beer mate! Your shout I reckon.";
>