Hi,

This is actually the normal way Perl handles timestamps.

This is one way to get the current date and time, and you can just replace
time() with whatever you get out of ARSperl or the AR System.

  my($sec, $min, $hour, $mday, $mon, $year, $wday) = localtime(time());
  printf("%4.4d-%2.2d-%2.2d %2.2d:%2.2d:%2.2d",
    $year + 1900, $mon + 1, $mday,
    $hour, $min, $sec
  );

        Best Regards - Misi, RRR AB, http://www.rrr.se (ARSList MVP 2011)

Ask the Remedy Licensing Experts (Best R.O.I. Award at WWRUG10/11/12/13):
* RRR|License - Not enough Remedy licenses? Save money by optimizing.
* RRR|Log - Performance issues or elusive bugs? Analyze your Remedy logs.
Find these products, and many free tools and utilities, at http://rrr.se.

> Epoch time is common on Unix systems.  perl has standard date functions for
> the conversion from and to epoch time.
>
> Dave.
>
>
>
>> On Sep 27, 2014, at 8:52 PM, Tauf Chowdhury <taufc...@gmail.com> wrote:
>>
>> Tim,
>> I'm not sure what you would do to translate in ARSPerl, but I can tell you
>> that the date/time in Remedy is stored in Unix epoch time in number of
>> seconds since 1/1/1970.
>>
>>
>> Sent from my iPhone
>>
>>> On Sep 27, 2014, at 8:40 PM, Tim Lank <timl...@timlank.com> wrote:
>>>
>>> 1. OS (operating system) version (RHEL 5.8 32-bit)
>>> 2. Perl version (output from perl -v) (This is perl, v5.8.8 built for
>>> i386-linux-thread-multi)
>>> 3. ARSystem version you are connecting to (7.6.04)
>>> 4. API version you compiled against (764sp1)
>>> 5. ARSperl version (1.93)
>>>
>>> I see dates for various fields that look something like this:  '1411859293'
>>>
>>> How would I interpret this in Human Readable format?
>>>
>>> How do I take Human Readable format and convert it via ARSperl into what
>>> Remedy uses?
>>>
>>> thanks in advance to any and all help.
>>>
>>> -Tim
>>>
>>> _______________________________________________________________________________
>>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
>>> "Where the Answers Are, and have been for 20 years"
>>
>> _______________________________________________________________________________
>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
>> "Where the Answers Are, and have been for 20 years"
>
> _______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> "Where the Answers Are, and have been for 20 years"
>

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to