carpentry-org / time Goto Github PK
View Code? Open in Web Editor NEWA date and time library for Carp
Home Page: https://carpentry.dev/time
A date and time library for Carp
Home Page: https://carpentry.dev/time
Instead of trying to continue down the road of adding functions like add-seconds
, we should probably use a proper timedelta type instead that we can add and subtract from times.
That would be the more principled abstraction and lead to better userland code.
Cheers
I am not sure if and*
and or*
where part of a previous version of carp but they are now missing. Replacing them with and
as well as or
makes this compile but executing any code leads to a multitude of errors like this one.
String String_prn(const String *s) {
^
out/main.c:14969:21: error: passing 'const char **' to parameter of type 'const String *'
(aka 'char *const *') discards qualifiers in nested pointer types
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
temp = String_prn(&p->tm_zone);
^~~~~~~~~~~
../carp-v0.5.5-x86_64-linux//core/carp_string.h:119:33: note: passing argument to
parameter 's' here
String String_prn(const String *s) {
Similarly to strftime
, we should support strptime
. It requires a fair bit of machinery, but shouldn’t be incredibly hard.
Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.