Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Tips and short articles on this subject
Perl - turning seconds into days, hours, minutes and seconds
Time conversions in Perl
What and why for the epoch
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Handling Dates and Time - Perl module P216
Was 8 p.m. on 28th February in Los Angeles before or after 8 a.m. in Tokyo on 1st March? Perl has a very neat trick to handling dates and times, meaning that such questions can be easily resolved. We'll show you that trick, and we'll show you the various functions that you can use to handle dates and times in Perl.

This topic is presented on public courses Perl Programming, Perl bootcamp

Examples from our training material
chivvy   Using %SIG to timeout keyboard entry
dt1   file last modified (days ago)
dt2   dt2 - file last modified (seconds from 1.1.1970)
dt3   current date and time (system dependent!)
dt4   use of time and localtime
dt5   compare a stated date and time with now!
sigint   Use of Signals in Perl to trap ^C (Control C)
tim   Converting times between epoch seconds and regular time
Opentalk forum discussions related to this topic
find modified file since a specific date
Extracting difference in hours
Problem with localtime
How to create a file with specific date and time
Question about converting time
Pictures
Perl - a modern language for ancient languages
Background information
This module is available under an Open Training Notes License for free download from http://www.training-notes.co.uk.
Topics covered in this module
So far.
File status operators.
stat on a file.
Via system commands.
How Perl handles dates and times.
Other date information available.
Convertors.
Convert from epoch seconds into "human readable" form:.
Convert from human readable form to epoch seconds.
Handling centuries.
Elapsed time sleep.
alarm.
Summary.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us.

We have a technical library of over 600 books on the subjects on which we teach. These books are available for reference at our training centre. Also available is the Opentalk Forum for discussion of technical questions.



See also:

© WELL HOUSE CONSULTANTS LTD., 2008: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho