source:
vendor/perl/5.8.8/lib/Net/demos/time
| Last change on this file was 3181, checked in by , 19 years ago | |
|---|---|
| File size: 309 bytes | |
| Rev | Line | |
|---|---|---|
| [3181] | 1 | #!/usr/local/bin/perl -w |
| 2 | ||
| 3 | use blib; | |
| 4 | use Net::Time qw(inet_time inet_daytime); | |
| 5 | ||
| 6 | print inet_daytime('localhost'); | |
| 7 | print inet_daytime('localhost','tcp'); | |
| 8 | print inet_daytime('localhost','udp'); | |
| 9 | ||
| 10 | print inet_time('localhost'),"\n"; | |
| 11 | print inet_time('localhost','tcp'),"\n"; | |
| 12 | print inet_time('localhost','udp'),"\n"; | |
| 13 |
Note:
See TracBrowser
for help on using the repository browser.
