Skip to content

A quine clock program that outputs its own source code and highlights characters in certain positions to display local time.

License

Notifications You must be signed in to change notification settings

anar-bastanov/qlock

Repository files navigation

Quine Clock

Qlock is a clock program that outputs its own source code and highlights characters in certain positions to display local time.

Preview

NOTE: A quine is a computer program that takes no input and produces a copy of its own source code as its only output.

Installation

The repository contains two Visual Studio projects, and each project has two C# files, one is the quine clock program and the other is the readable version of the same code.

  1. Download the whole repository.
  2. Double-click the solution file (.sln) to open projects in Visual Studio.
  3. Configure the startup project first or press Run right away.

The reason why there are two projects in the first place is that the newest C# versions have an optional feature called Implicit Using Directives, and it allows shortening some code, thus the two versions of the same quine:

Project Target Framework Implicit Usings
quine-clock.csproj .NET 6 Disabled
quine-clock-implicit-usings.csproj .NET 8 Enabled

References

Other implementations:

License

Copyright © 2024 Anar Bastanov
Distributed under the MIT License.

About

A quine clock program that outputs its own source code and highlights characters in certain positions to display local time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages