Loading ...
Sorry, an error occurred while loading the content.

Re: Receiving a dateTime timestamp

Expand Messages
  • Erik van Zijst
    Thanks Byrne. To be honest however this was not quite the answer I was hoping for :-)
    Message 1 of 6 , Jul 15, 2003
    • 0 Attachment
      Thanks Byrne. To be honest however this was not quite the answer I was
      hoping for :-)

      --- In soaplite@yahoogroups.com, Byrne Reese <breese@g...> wrote:
      > This is the trouble with Perl [5.x that is :)] - because it is loosely
      > typed, it is difficult to discern what kind of object you want to
      > serialize a xsd:dateTime object into. I suggest using a RegEx to grep
      > out the parts you need and build a datetime object of your choosing.
      > Then submit the code back to the group and perhaps it may find its way
      > into the code base.
      >
      > Maybe SOAP::Lite could return an array reference similar to what is
      > returned when I run:
      >
      > my (@time) = localtime();
      >
      >
      > On Mon, 2003-07-14 at 07:07, Erik van Zijst wrote:
      > > Hi folks,
      > >
      > > Please excuse my ignorance, but I'm a Java developer but I use
      > > soaplite to do most of the testing of my new web services. It's more
      > > convenient than writing a full-featured Java client.
      > >
      > > Anyway, I've got trouble receiving dateTime objects. When a service
      > > returns:
      > >
      > > <newsDate xsi:type='xsd:dateTime'>2003-07-14T14:02:30.000Z</newsDate>
      > >
      > > and I print the timestamp using "print $result->result->{newsDate}", I
      > > simply get the string "2003-07-14T14:02:30.000Z". How do I convert
      > > this back into some kind of date object that I can print and process?
      > >
      > > cheers,
      > > Erik
      > >
      > >
      > >
      > > Yahoo! Groups Sponsor
      > > ADVERTISEMENT
      > > click here
      > >
      > > To unsubscribe from this group, send an email to:
      > > soaplite-unsubscribe@yahoogroups.com
      > >
      > >
      > >
      > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
      > --
      > Byrne Reese
      > Developer Program Manager
      > Grand Central Communications
    Your message has been successfully submitted and would be delivered to recipients shortly.