Win32::SqlServer::DTS::DateTime - DateTime Perl object built from Win32::OLE Variant values


Win32-SqlServer-DTS documentation  | view source Contained in the Win32-SqlServer-DTS distribution.

Index


NAME

Top

Win32::SqlServer::DTS::DateTime - DateTime Perl object built from Win32::OLE Variant values

SYNOPSIS

Top

    use Win32::SqlServer::DTS::DateTime;
	use Win32::OLE::Variant;

	my $variant = Variant( VT_DATE, "April 1 99" );

	my $date = Win32::SqlServer::DTS::DateTime->new($variant);

DESCRIPTION

Top

Extends the DateTime class constructor (new method) to create a DateTime object that is equal to a Win32::OLE::Variant object.

Some classes in DTS distribution have methods that returns date/time values, but as Variants. Win32::SqlServer::DTS::DateTime objects are used as substitutes.

Most attributes returned as date/time variants from DTS API original classes are read-only, so beware that changing a Win32::SqlServer::DTS::DateTime object attribute because, as long as it seems to work, it will not save the state in the DTS package: the Win32::SqlServer::DTS::DateTime is "disconnected" from the original date/time variant.

EXPORT

Nothing.

METHODS

new

Expects a Win32::OLE::Variant date object as a parameter.

SEE ALSO

Top

* MSDN on Microsoft website and MS SQL Server 2000 Books Online are a reference about using DTS' object hierarchy, but you will need to convert examples written in VBScript to Perl code.
* DateTime.
* Win32::OLE::Variant.

AUTHOR

Top

Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>

COPYRIGHT AND LICENSE

Top


Win32-SqlServer-DTS documentation  | view source Contained in the Win32-SqlServer-DTS distribution.