Skip to content

osfree-project/clock

Repository files navigation

osFree Janus Clock

Language: C License: LGPL-2.1 Platform: Win16 Status: Alpha

A clone of the classic Windows 3.x Clock application, extended and ported to 16‑bit (Windows 3.x) from Wine Clock. This is part of the osFree Win16 Personality project — an open‑source implementation of the 16‑bit Windows environment.

Analog clock Digital clock

📖 About

Clock displays the current date and time using both an analog and a digital representation. It is a component of the osFree Janus project to create an open‑source clone of Windows 3.0. The application is based on the Wine Clock code, adapted for the 16‑bit Windows API and extended with additional features.

The project continues the original idea by Marcel Baur (1998) and is currently maintained by the osFree team.

✨ Features

  • Dual display mode – Switch between analog and digital views via the Settings menu or by double‑clicking the clock face.
  • Customisable face – Show or hide the seconds hand, the date, and the window title bar.
  • Always‑on‑top – Keep the clock visible above other windows.
  • Remembered settings – Window position, size, and display options are saved between sessions.
  • Lightweight – Minimal resource usage, just like the original Windows 3.x clock.
  • Localisation ready – Resource file (clock.rc) can be translated; the current version includes English strings.
  • Debug support – When a debug version of the system is present, extra diagnostic information is shown.

🧩 Project Structure

File Description
main.c Main application source code
main.h Header file with common definitions
winclock.c Core clock implementation (drawing, time handling)
winclock.h Header file for clock‑specific functions
clock.rc Resource file (menus, dialogs, strings)
clock_res.h Resource identifiers
colors.h Colour definitions
makefile Build file for Open Watcom Make
_wcc.cmd / _wcc.sh Auxiliary build scripts
clock.docx Documentation file

🤝 Contributing

We welcome your contributions! Please keep the following in mind:

  • Bug reports – Create issues in the Issues section.
  • Pull requests – Send your improvements and fixes.
  • Documentation and localisation – Help translating the interface into other languages is highly valuable.

📜 License

Distributed under the GNU Lesser General Public License v2.1 (LGPL‑2.1). See LICENSE for more details.

🔗 Related Projects

👤 Copyright

  • Copyright (C) 1998 Marcel Baur

    Clock is partially based on:

    • Program Manager by Ulrich Schmied
    • rolex.c by Jim Peterson
  • Copyright (C) 2002 Sylvain Petreolle

  • Copyright (C) osFree project


Last updated: May 25, 2026

Releases

No releases published

Packages

 
 
 

Contributors

Languages