AminetAminet
Search:
84734 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/misc/envtime.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:OS4: Set a time env var for use in WB titlebar
Author:Nick Clover
Type:util/misc
Version:0.03
Architecture:m68k-amigaos
Date:2006-06-17
Requires:OS4 (68k binary though)
Download:util/misc/envtime.lha - View contents
Readme:util/misc/envtime.readme
Downloads:942

Stick this in C: and add it to your user-startup with 'run<> nil:' in front, eg.

run <>nil: C:envtime s date

Instructions are in the program itself:

>envtime ?
Usage: envtime 12/s, S/s, Date/s, mdy/s
  12   = use twelve hour clock, default is off
  S    = Display seconds, default is off
  Date = Display date, default is off
  mdy  = use Month/Day/Year, default is Day/Month/Year
In Workbench Prefs add '%e time' to the screen title format

This program is not native, it was just a quick play with Amiblitz to see how
well it was working under OS4. if anyone wants the source just PM me (Severin)
on AW.

History:

0.01  First public release

0.02  Added external configuration files to set the day name to whatever the
      user wanted (never released)

0.03  scrapped external configuration in favour of using locale and saved 5k 
      in exe size :-)
      Reworked the main loop so the envvar is written as little as possible,
      with previous versions the envvar was written 5 times a second, now it's
      written once a second with the seconds option or once a minute without 
      it.




Contents of util/misc/envtime.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 9128   16788  54.4% -lh5- 7843 Jun 15 18:40 ENVTime
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         1 file     9128   16788  54.4%            Jun 17 01:10
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>