ePages 6.17.52 - DE_EPAGES/Product/API/Tools.pm

Package DE_EPAGES::Product::API::Tools

A collection of helper functions

Base
Exporter
@EXPORT_OK
MergeUpdatedProductsResults
ConvertDateTimeForEpJ

Functions

ConvertDateTimeForEpJ
MergeUpdatedProductsResults

ConvertDateTimeForEpJ

Converts ep6 datetime strings to epj UTC datetime strings.

Syntax
ConvertDateTimeForEpJ( $DateTimeString );
Input
$DateTimeString (string)
ep6 datetime string
Return
(string)
epj UTC datetime string

MergeUpdatedProductsResults

Merges the two arrays with updated products. If one product id appears in both arrays, the one with the latest date will be taken.

Syntax
MergeUpdatedProductsResults( $aArray1, $aArray2 );
Input
$aArray1 (refarray)
Array 1 to merge
$aArray1 (refarray)
Array 2 to merge
Return
(refarray)
Merged arrays