djgpp, and MinGW compiled executables with sources [DOS 32-bit, windows 32+64-bit]).
the program can be downloaded as a single prtime.zip file. lsm file.
01/14/2011 12:18 AM 228,324 prtime.zip SHA512 prtime.zip 72797126d1b34cf3 a0c76df4ad0a2ebb ad76e536a6eea671 df10984992cad823 12483954c1b8d0cd 5f349da7b24b2c0d 89581d8b41a0769a 29016375064caf96 MD5 prtime.zip 3949c3b7825cafac4dbfa3eec289cfec
prtime prints the current date and time, and whether it is DST or not, without asking you to change the time. this is different from typing in TIME and hitting enter.
a program like this allows you to be able to time events.
C:\prj\prtime\prtime-2.4\win>prtime Wed Jan 13 2011 22:27:56 C:\prj\prtime\prtime-2.4\win>prtime -24 Wed Jan 13 2011 22:28:02 C:\prj\prtime\prtime-2.4\win>prtime -12 Wed Jan 13 2011 10:28:06 pm C:\prj\prtime\prtime-2.4\win>prtime -exec prtime elapsed time: 0 days, 00:00:00.140 C:\prj\prtime\prtime-2.4\win>prtime -v Version 2.4 C:\prj\prtime\prtime-2.4\win>prtime -h prtime - print the local date and time usage: prtime [-?] [-[-]h[elp]] [-[-]v[er[sion]]] prtime [-12] [-24] prtime -exec programFilePath [programArguments ...] -? or -h -r -help gives this help. -v or --v or -ver or -version gives the program version. prtime with no arguments or with -24 gives 24 hour time and date. prtime with -12 gives 12 hour time and date. prtime -exec programFilePath [programArguments ...] prints the elapsed run time of a program that you specify. Copyright 2009-2011 Jim Michaels, portions from examples copyright Microsoft Corporation. Under GPL3 License. C:\prj\prtime\prtime-2.4\win>
gcc compiler note:
-fpack-struct cannot be used with iostream or anything to do with libstdc++ (including locale which includes iostream) without getting lots of errors.
The dos version is compiled with DJ Delorie's djgpp (gcc for DOS). It can be obtained at DJDelorie.com/djgpp.
The GNU compiler set has the peculiar ability to glob filenames at the command line. this can be a nice or an unwanted feature. to get around it, aurround the * with double quotes "*". This includes DJGPP-generated and MinGW-generated code.
The windows version was also compiled with MinGW 5.1.4 which is a GNU compiler set for windows. it has the peculiarity that it requires any use of
#include <basestd.h>, and it also doesn't allow 64-bit constants in the microsoft/borland style of appending
i64 to the number. it requires you to use the gcc
LL instead, however, printf does use
%I64d rather than the normal gcc
%lld. If you use
%lld, your program will crash and do the DrWatson error report thing.
PHP is a programming language used for web page development and for applications and is available at http://php.net
ArgoUML is a UML diagramming tool used for designing programs and is available at http://argouml.tigris.org
Copyright 2009 Jim Michaels, Microsoft Corporation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.