Hi,
there are several possibilities to achieve this:
- the most reliable method might be to not handle it in your perl script
altogether, but instead create a filter on "Merge" that sets the fields
to TIMESTAMP/SERVERTIMESTAMP.
- You might use perl's "time" built-in function:
$fldid_geocode_update_date, time(),
$fldid_modified_date, time(),
Of course this would only give you the current client time. I don't know
how important it for you to have the exact server timestamp; in this
case you could determine the server time by
my %info = ars_GetServerInfo( $ctrl, &ARS::AR_SERVER_INFO_SERVER_TIME );
die "ars_GetServerInfo(): $ars_errstr" if $ars_errstr;
my $tdiff = $info{SERVER_TIME} - time();
and then compute the server time by adding a correction term:
$fldid_geocode_update_date, time()+$tdiff,
$fldid_modified_date, time()+$tdiff,
Regards,
Thilo Stapff
On 10.06.2010 18:44, Anderson Debra (PRN) wrote:
**
Hi,
I am new to using Remedy Perl ARSPerl Module and am trying to figure out
how to pass in values equivalent to $TIMESTAMP$ or $SERVERTIMESTAMP$
keywords to a merge function.
Here is a snippet of my code but the constants do not evaluate and I end
up with invalid date values in the merged (updated) record.
$ar_result = ars_MergeEntry($connection,$store_schema,4,
$fldid_store_id,$store_id,
$fldid_latitude,$latitude,
$fldid_longitude,$longitude,
$fldid_geocode_update_date,AR_KEYWORD_SERVERTIMESTAMP,
$fldid_modified_date,AR_KEYWORD_SERVERTIMESTAMP,
$fldid_modified_by, $modified_by);
Any suggestions?
Thanks
Debra
-- -- -- -- -- -- -- -- -- --
Debra Anderson
415 808 9118 direct |
600 Harrison St., 4th Floor, San Francisco CA 94107
Tomorrow's Network for Today's Shopper
_http://www.prn.com
_
P *Think Green-* please do not print this email unless necessary
This e-mail (including any attachments) is meant for only the intended
recipient of the transmission, and may include confidential information.
If you are not the intended recipient or you received this e-mail in
error, any review, use, dissemination, distribution, or copying of this
e-mail is strictly prohibited. If you have received this message in
error, please notify the sender immediately by telephone at (415)
808-3500 or by return e-mail and delete this e-mail, along with any
attachments and copies, from your system. Thank you.
_attend WWRUG10 www.wwrug.com ARSlist: "Where the Answers Are"_
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug10 www.wwrug.com ARSlist: "Where the Answers Are"