Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

getCurrentTime

Queries the current Optimizely Campaign server time in Optimizely Campaign.

This is useful for synchronizing the export of statistical response data.

Type: long

Parameters

NameTypeValue
sessionIdStringID of the session

Return values

The current Optimizely Campaign server time in milliseconds

Code structure

long getCurrentTime(String sessionId)