Developing Apama Applications > Developing Apama Applications in EPL > Using Correlator Plug-ins in EPL > Using the Time Format plug-in
Using the Time Format plug-in
The Time Format plug-in provides a set of functions to assist with date and time formatting. For a list of time zones, see Timezone ID Values in Using Dashboard Viewer. Specify an import statement in each monitor that requires the Time Format plug-in functions.
import "TimeFormatPlugin" as timeMgr;
This loads the Time Format plug-in and assigns the timeMgr alias to it.
Description
Windows
The plug-in is available as TimeFormatPlugin.dll in the bin directory.
UNIX
The plug-in is available as libTimeFormatPlugin.so in the lib directory. When you use the Time Format plug-in on any UNIX-based system, you must correctly configure the TZ environment variable so the plug-in can identify the correct locale. Specify the value in either of the following formats:
Continent/City
Ocean/Archipelago
For example: TZ=Europe/London. The alternative shortened format will not work correctly. For example, the plug-in does not recognize TZ=GB. If you specify something like this, the plug-in uses Coordinated Universal Time (UTC).
Functions
The Time Format plug-in provides the following functions:
See also Format specification for the Time Format plug-in functions
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.