Revision history for Perl distribution Excel::Template
+0.30 Sa Dec 01 00:00:00 2007
+ - Add write_date_time to write a datetime-value into a cell
+
0.29 Mon Oct 08 12:00:00 2007
- Added merge_range as written by Stevan Little
set_codepage
Worksheet
write_unicode/write_unicode_le
- write_url
write_url_range
- write_date_time
write_comment
activate/select/set_first_sheet
set_selection
use Excel::Template::Base;
use vars qw ($VERSION @ISA);
- $VERSION = '0.29';
+ $VERSION = '0.30';
@ISA = qw( Excel::Template::Base );
}
}
my %legal_types = (
- 'blank' => 'write_blank',
- 'formula' => 'write_formula',
- 'number' => 'write_number',
- 'string' => 'write_string',
- 'url' => 'write_url',
+ 'blank' => 'write_blank',
+ 'formula' => 'write_formula',
+ 'number' => 'write_number',
+ 'string' => 'write_string',
+ 'url' => 'write_url',
+ 'date_time' => 'write_date_time',
);
sub render
=item * url
+=item * date_time
+
=back
-q.v. L<Spreadsheet::WriteExcel> for more info.
+other write_* methods as defined defined L<Spreadsheet::WriteExcel> would be integrated by request
=back
);
my @_integer_formats = qw(
- size num_format underline rotation indent pattern border
+ size underline rotation indent pattern border
bottom top left right
);
my @_string_formats = qw(
- font color align valign bg_color fg_color border_color
+ num_format font color align valign bg_color fg_color border_color
bottom_color top_color left_color right_color
);
<cell type="blank">Blank</cell>
<cell type="url">URL</cell>
<cell type="formula">Formula</cell>
- </worksheet>
+ <cell type="date_time">DateTime</cell>
+ </worksheet>
</workbook>
Spreadsheet::WriteExcel::Worksheet::write_blank( '0', '2', 'Blank', '1' )
Spreadsheet::WriteExcel::Worksheet::write_url( '0', '3', 'URL', '1' )
Spreadsheet::WriteExcel::Worksheet::write_formula( '0', '4', 'Formula', '1' )
+Spreadsheet::WriteExcel::Worksheet::write_date_time( '0', '5', 'DateTime', '1' )
Spreadsheet::WriteExcel::close( '' )
__END_EXPECTED__
}
my @funcs = qw(
- write_string write_number write_blank write_url write_formula write
+ write_string write_number write_blank write_url write_formula write_date_time write
set_row set_column keep_leading_zeros insert_bitmap freeze_panes
set_landscape set_portrait merge_range
);