Support Services

How do I calculate UTC time in ticks?

When using SWP and SOAP/REST web services, a UTC time in ticks since 01/01/0001 00:00:00A may be required to compute the hash value. In cases such as with the integrated cart payment modules, the UTC time in tickets can be computed in seconds using PHP time() function since 01/01/1970 00:00:00AM UTC. The following code may be helpful in computing the UTC time in PHP:

$time = time() + 62135596800;
'UTC now ticks= echo ' . $time . '0000000';

In addition, you can use the following code to generate the UTC time in tickets value in PERL.

# generate UTC time stamp since 01/01/0001 in tics
my $time = (time + 62135596800) . "0000000";

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.