Subversion Repositories camp_sysinfo_client_3

Rev

Rev 135 | Rev 144 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 135 Rev 143
Line 120... Line 120...
120
# return current system date as YYYY-MM-DD HH:MM:SS
120
# return current system date as YYYY-MM-DD HH:MM:SS
121
#
121
#
122
#######################################################
122
#######################################################
123
sub timeStamp {
123
sub timeStamp {
124
   my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);
124
   my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);
125
   return sprintf "%4d-%02d-%02d %02d:%02d:%02d\n",$year+1900,$mon+1,$mday,$hour,$min,$sec;
125
   return sprintf "%4d-%02d-%02d %02d:%02d:%02d",$year+1900,$mon+1,$mday,$hour,$min,$sec;
126
}
126
}
127
   
127
   
128
 
128
 
129
sub enableModules {
129
sub enableModules {
130
   my $moduleDir = shift;
130
   my $moduleDir = shift;