PHP Analog Clock

About

This PHP script generates an image of an analog clock. You can specify different parameters such as time zone, font color, font type and text to display.

Download

v. 1.1

Backgrounds

black.jpg

Options

tz - Timezone
Used to specify the timezone the clock should use comprehensible by PHP.

clock.php?tz=America/New_York

t - Current Time
Time format follows anything that can be parsed by the strtotime() function.

clock.php?t=2001-01-01%2018:25:03

color - Primary Color in Hex triplets
This will give

clock.php?color=ffff00

text - Text to Display
This will be displayed at the bottom left corner of the image.

clock.php?text=Los%20Angeles

font - Font type to use
Font is available 1-5

clock.php?text=Los%20Angeles&font=3

bg - Background to use
Currently 1 or 2

clock.php?bg=2&color=000000

Sources

Original Clock by Alex.
Circle Formula by Unknown.