Changeset 29376 for trunk/tools/czartool/MySQLDb.pm
- Timestamp:
- Oct 11, 2010, 3:13:27 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/czartool/MySQLDb.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czartool/MySQLDb.pm
r29280 r29376 64 64 return $self->{_dbHost}; 65 65 } 66 ########################################################################### 67 # 68 # Adds the provided interval to the provided time 69 # 70 ########################################################################### 71 sub getFormattedDate { 72 my ($self, $time) = @_; 73 74 my $query = $self->{_db}->prepare(<<SQL); 75 SELECT DATE_FORMAT('$time','$self->{_dateFormat}'); 76 SQL 77 $query->execute; 78 79 return scalar $query->fetchrow_array(); 80 } 66 81 67 82 ###########################################################################
Note:
See TracChangeset
for help on using the changeset viewer.
