Milliseconds Resolution
Jose Lerebours
fpgroups at gmail.com
Mon Sep 5 21:07:31 PDT 2016
On 09/05/2016 11:50 PM, Stanley - stanlyn.com wrote:
> Hi Jose,
>
>> |# date +"%H:%M:%S,%3N" |
> Are you saying there is no filepro function for this and I must do a system
> call to get it? If so, then how would I use filepro to do math on the
> return values?
>
>
Yeah, if you want to do math as precise as that, you may want to look at
using epoch time stamps. Like Mark said in his earlier post, I am not
aware of a function in filePro that would do it.
What kind of math are you talking about?
Going back to Mark's post, you may want to look at Perl (although I am a
PHP guy myself) and write a script to handle the task and return the
value you seek. filePro has a command known as "user" which can be used
in combination with your script to get the desired results.
|wget -qO- http://www.timeapi.org/utc/now?\\s.\\N
or
|
|php -r 'echo microtime(TRUE);'
or
|
|python -c 'import time; print time.time()'
or
|
|ruby -e 'puts Time.now.to_f'
|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20160906/d42a15dd/attachment.html>
More information about the Filepro-list
mailing list