Hi Nuno,

I define a class with an attribute 'Create' as %TimeStamp.

Then I use Cache objectscript to create a new object and want to store the
timestamp when the object is created.

Set Created = $H
Set Created = $ZDT($H,3)

The object cannot be created unless i change 'Created' to %String.




"Nuno Canas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Suo,
> Are you using ODBC or dircet cach� ?
> If you're using cache you just need $H
>
> Nuno
>
> Suo Cong wrote:
> > Hi Jay,
> >
> > It seems that $ZDT($H,3) converts the date/time to a string not to a
> > timestamp. I used it in my program:
> >
> > Set Created = $ZDT($H,3)
> >
> > If Created is defined as %String then it is ok. If it is defined as
> > %TimeStamp then it doesn't work. :-(
> >
> >
> >
> >
> > "Jay Ayliff" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>Hi Suo,
> >>
> >>$ZDT($H,3) works for me.
> >>
> >>Jay Ayliff
> >>
> >>"Suo Cong" <[EMAIL PROTECTED]> wrote in message
> >>news:[EMAIL PROTECTED]
> >>
> >>>Hi,
> >>>
> >>>Does anybody know how to convert $H to a %TimeStamp variable?
> >>>
> >>>Thanks,
> >>>Suo
> >>>
> >>>
> >>
> >>
> >
> >
>



Reply via email to