Perl 三种时间time,localtime,gmttime
2015-03-23 13:19
447 查看
#!/usr/bin/perl use warnings; use diagnostics; use strict; use POSIX; print "time: ", time(),"\n"; print "localtime: ", localtime(),"\n"; print "gmttime: ", gmtime(),"\n"; time: 1427087838 localtime: 1817132321151810 gmttime: 181752321151810
相关文章推荐
- perl 时间函数(timelocal,localtime,strftime)小用
- Linux中atime、mtime、ctime三种时间状态
- Windows的本地时间(LocalTime)、系统时间(SystemTime)、格林威治时间(UTC-Time)、文件时间(FileTime)之间的转换
- perl中localtime,time,gmtime的区别
- Perl localtime时间函数的应用介绍
- Windows的本地时间(LocalTime)、系统时间(SystemTime)、格林威治时间(UTC-Time)、文件时间(FileTime)之间的转换
- Windows的本地时间(LocalTime)、系统时间(SystemTime)、格林威治时间(UTC-Time)、文件时间(FileTime)之间的转换
- 探讨linux进程的三种时间(real time, system cpu time, user cpu time)的实现
- perl的时间处理之localtime和strftime
- 本地时间(LocalTime)、系统时间(SystemTime)、格林威治时间(UTC-Time)、文件时间(FileTime)之间的转换
- 【原创】Windows的本地时间(LocalTime)、系统时间(SystemTime)、格林威治时间(UTC-Time)、文件时间(FileTime)之间的转换
- 通过Run-Time Library中的time和localtime函数获取系统时间
- Linux文件与目录的三种时间状态(mtime,atime,ctime)区别
- Windows的本地时间(LocalTime)、系统时间(SystemTime)、格林威治时间(UTC-Time)、文件时间(FileTime)之间的转换
- 关于文件状态的三种时间,mtine ,ctime , atime 以及查看文件状态stat 和修改文件时间touch
- linux常用的时间获取函数(time,gettimeofday,clock_gettime,_ftime,localtime,strftime )
- Windows的本地时间(LocalTime)、系统时间(SystemTime)、格林威治时间(UTC-Time)、文件时间(FileTime)之间的转换
- Linux文件与目录的三种时间状态(mtime,atime,ctime)区别
- Linux文件与目录的三种时间状态(mtime,atime,ctime)区别
- 时间编程:time(),localtime(),gmtime(),asctime(),ctime(),gettimeofday(),settimeofday()