[Affelio-cvs 1426] CVS update: affelio/lib/Affelio/misc

Back to archive index

Tadashi Okoshi slash****@users*****
2006年 8月 15日 (火) 00:41:54 JST


Index: affelio/lib/Affelio/misc/Time.pm
diff -u affelio/lib/Affelio/misc/Time.pm:1.8 affelio/lib/Affelio/misc/Time.pm:1.9
--- affelio/lib/Affelio/misc/Time.pm:1.8	Tue Mar  7 23:39:11 2006
+++ affelio/lib/Affelio/misc/Time.pm	Tue Aug 15 00:41:53 2006
@@ -14,7 +14,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
-# $Id: Time.pm,v 1.8 2006/03/07 14:39:11 slash5234 Exp $
+# $Id: Time.pm,v 1.9 2006/08/14 15:41:53 slash5234 Exp $
 
 package Affelio::misc::Time;
 {
@@ -49,8 +49,9 @@
     }
 
     sub get_timestamp{
+	my $offset = shift;
 	my ($sec, $min, $hour, $mday, $mon, $year,
-	    $wday, $yday, $isdst) = localtime(time());
+	    $wday, $yday, $isdst) = localtime(time() + $offset);
 	
 	return sprintf("%04d%02d%02d%02d%02d%02d", 
 		       $year+1900, $mon+1, $mday,


Affelio-cvs メーリングリストの案内
Back to archive index