The ability to manipulate dates and times is fundamental to most programming languages, and Perl is no exception. But when it comes to more complex processing of time, Perl's own features often seem powerless. In this case, it's a good idea to take
Using two different functions, checkmd5sum.pl is faster than checkmd5sum_find.pl in terms of execution efficiency.
1.checkmd5sum.pl #!/usr/bin/perl # # File:checkmd5sum.pl # Author:amxku.net # date:2008-12-...The two use different functions, and
Unix Timestamp (Unix timestamp), or Unix time (Unix times), POSIX time, is a time representation defined as 1970 from Greenwich time The total number of seconds from January 01 00:00 00 seconds to now. Unix timestamps are used not only in UNIX
Brief introduction
Awk is a powerful text analysis tool that is particularly powerful when it comes to analyzing and generating reports on data, compared to grep lookup and sed editing. To put it simply, awk reads the file line by row, using a
Asctime ()
Time Text Format
Clock ()
Returns the elapsed time since the program started running
CTime ()
Return a specific format time
Difftime ()
The interval between two moments
Reproduced in: http://blog.chinaunix.net/uid-25909722-id-2827364.html architecture and related functions representing "Time" in Linux 2011-09-13 17:01:13Category: C/In the Linux system, there are many structures representing the concept of "time",
ObjectiveInterpretation of related termsThe manifestation of timeTime ModuleDateTime moduleTime Format CodeSummarizeObjectiveIn the development work, we often need to use the date and time, such as:Content output as log informationCalculate the
The system needs to use a large number of system data files, wherein all UNIX systems are: Password files, group files, most systems provide: login account records, system identification, time and date routines, At the same time, there are some
a basic knowledge
Millisecond MSMicrosecond μsNanosecond nanoseconds1 sec =1000 msec 1 msec =1000 microseconds 1 μs =1000 nanoseconds
Two Perl
In Perl, you can use time or localtime to get the times, the number of seconds to return from 0 o'clock
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.