Developing Apama Applications > EPL Reference > Lexical Elements > Literals > Time literals
Time literals
In Apama query definitions, time literals can be in within clauses.
TimeLiteral
A space is required between a float or integer literal and its associated time unit. A space is required between a time unit and a float or integer literal that follows it. Additional whitespace is also allowed.
You cannot specify a negative number.
Outside a query, you can use these keywords as identifiers. Inside a query, you cannot use these keywords as identifiers unless you prefix them with a hash symbol (#). See Escaping keywords to use them as identifiers.
Examples
*10 hours
*1.5 days
*1 day 2.5 hours 10 min 4 sec
*2 day 3.5 minutes
Copyright © 2013-2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.