You are Here:
FAQ
Scripting & Programming
Perl
Article #1
|
How can I find one time and/or a date out with Perl?With a combination of the functions localtime() and time() the announcement of one time and/or a date is possible: Script 1: date.pl #!/usr/bin/perl An array is returned. The individual fields can call you up with # ] ( whereby x stands for a number between 0 and 4). The expenditure of the programme looks above then for example as follows: Sat*May*27*20:09:33*2000 * See this script in action Click Here. |
© 2007 1&1 Internet Ltd - About 1&1 Internet