|
Hi
Timothy,
Thanks for your response. This is a subroutine, where I am
getting this problem while accessing Date method.
sub
process_date_variant{
my $inputvar = shift; my $sentvariant =
Variant(VT_DATE,'Jan 1, 1970 3:00 pm');
my ($convertdate, $sentdate ); $sentvariant = $inputvar;
$senton = 'Thu, 01 Jan 1970 00:00:00 GMT'; #default date if($sentvariant && ($sentvariant =~m/[0-9]+/)){ $sentdate = $sentvariant->Date(LOCALE_NOUSEROVERRIDE|DATE_SHORTDATE)." ".$sentvariant->Time(TIME_FORCE24HOURFORMAT|TIME_NOTIMEMARKER)." "."GMT"; }else{ undef $sentdate; } return $sentdate; }
Regards
Satish
From: Timothy Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 2:23 PM To: [EMAIL PROTECTED]; [email protected] Subject: RE: Win32::OLE::Variant, perl crashing. Not sure off the top
of my head. Is there any way you could post some example
code? From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Satish Kaushik Hi Everyone,
Is there any
way to identify whether date is a Variant or a simple String? Thanks & Regards |
_______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
