The time now is Sun 29 Nov 2020, 09:35
All times are UTC - 4
Joined: 07 Mar 2015
|Posted: Thu 02 Jul 2020, 11:45 Post subject:
Modified a little the old pmonth_p program.
Also renamed it to tell the difference.
In a way, sting ver.01 is not oriented at regular users,
while it could be useful for scripters - to avoid complicated
logic in GUI apps that should follow locale specific calendar
layout. Well, in GTK2 this may or not matter - as there is built-in and
almost fullfeatured widget for that purpose, other toolkits are not
that lucky in that respect.
Simplest use would be as input for Conky, GKrellm2, etc.
Automated locale support, week start day detection.
Abbreviated day labels with dual or single letter.
Numerical commandline arguments for current date marks,
and also for year and month selection - from 1800 to 9999.
Current date marks can also be turned off or selected from
seven different built-in options.
Month numerical value with or without leading zero.
Some error checking on input to avoid segfaults, etc.
No special dependencies, regular
Expected build size is around 10 KB stripped.
Public Domain. Feel free to relicense as needed.
Some of the code is still hacky and untested.
Could be extended with more "invisible" date marks
to support different scripts or outputs, etc.
Open for suggestions and fixes.
And a big fat disclaimer:
Note that sting ver.01 is a commandline program,
so likely there will be nothing happening when you doubleclick
on it with the mouse
Uh, just in case..
||sting calendar C-source version 01
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Powered by phpBB © 2001, 2005 phpBB Group