Invalid Domain
You are here :
Date and TimeThis program will return an image with the current date and time on it. The script can be accessed by using the following bit of HTML:<img src="/cgi-bin/dateandtime">
Without passing it any data then it will pass back an image like this: However, to tailor this more to your taste there are a number of optional parameters you can pass to the program to change it (note that the first attribute in a CGI is always denoted by a "?"; any subsequent ones use "&"). colour Although the default colour is black, there are 24 colours to choose from - essentially the same as those used for Orpheus's counter. Only the text colour is changed, the background is always transparent.
In additional, the eight main colours can be called by name:
bold The default font is quite thin, but if you have quite a strong background colour this might not show up very well. In this case you could try adding the bold attribute - available in two versions, as well as off:
format It may be that, for your website, the standard format doesn't suit you - either it's too long, too short, or just won't align with text properly. So, perhaps
clock By default the program always put the time somewhere in the image, and always uses the 24 hour clock (now that we're all good Europeans). However, this might not suit your purpose; a proper 12 hour clock, or no time at all, might be more to your taste.
Examples
Final notesIt should be noted that, although the image returned is always 16 pixels high, you should never give the image a width attribute (e.g. <img src="..." width="100"...> because it may be different every time - it depends on the date.
Don't panic! |