|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object condor.classad.Builtin
A library of builtin functions. Each function is static and public, excepts an array of Expr as an argument and returns an Expr as a result.
FuncCall
Method Summary | |
static Expr |
absTime(Expr[] args)
Convert to absolute time. |
static Expr |
ceiling(Expr arg)
Returns an integer constant corresponding to the ceiling of the value of arg. |
static Expr |
floor(Expr arg)
Returns an integer constant corresponding to the floor of the value of arg. |
static Expr |
glob(Expr str,
Expr pat)
Compares a string with a shell-style "glob" pattern. |
static Expr |
gmtTime(Expr secs)
Convert a time constant to a string in "Unix" format, using GMT. |
static Expr |
gmtTimeString(Expr secs)
Convert a time constant to a string in "Unix" format, using GMT. |
static Expr |
iglob(Expr str,
Expr pat)
Compares a string with a shell-style "glob" pattern, ignoring case. |
static Expr |
Int(Expr arg)
Convert to integer. |
static Expr |
localTimeString(Expr secs)
Convert a time constant to a string in "Unix" format, using the local time zone. |
static Expr |
real(Expr arg)
Convert to real. |
static Expr |
relTime(Expr arg)
Convert to relative time. |
static Expr |
round(Expr arg)
Returns an integer constant corresponding to the value of arg rounded to the nearest integer. |
static Expr |
strcat(Expr[] args)
Converts each argument to a string and returns the concatenation of the values. |
static Expr |
strcmp(Expr s1,
Expr s2)
Compares two strings. |
static Expr |
stricmp(Expr s1,
Expr s2)
Compares two strings ignoring differences in case. |
static Expr |
string(Expr s)
Converts the argument to a string. |
static Expr |
substr(Expr[] args)
Returns a substring of a string. |
static Expr |
timeInterval(Expr secs)
Convert a number of seconds into a time interval string of the form "days+hh:mm:ss". |
static Expr |
unixTime()
Get the current time in seconds since the epoch. |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Expr strcat(Expr[] args)
args
- the arguments
public static Expr substr(Expr[] args)
args
- the arguments
public static Expr strcmp(Expr s1, Expr s2)
s1
- the first string.s2
- the second string.
public static Expr stricmp(Expr s1, Expr s2)
s1
- the first string.s2
- the second string.
public static Expr glob(Expr str, Expr pat)
str
- the string to be compared againstpat
- the pattern to match
public static Expr iglob(Expr str, Expr pat)
str
- the string to be compared againstpat
- the pattern to match
public static Expr Int(Expr arg)
arg
- the value to be converted.
public static Expr real(Expr arg)
arg
- the value to be converted.
public static Expr string(Expr s)
s
- str the string to convert.
public static Expr relTime(Expr arg)
arg
- the value to be converted.
public static Expr absTime(Expr[] args)
args
- the arguments. May be either a single string (which is
parsed as an ISO 8601 date spec), or an optional number of seconds
offset from the epoch and optional number of seconds east of
Greenwhich.
public static Expr floor(Expr arg)
arg
- the input value.
public static Expr ceiling(Expr arg)
arg
- the input value.
public static Expr round(Expr arg)
arg
- the input value.
public static Expr unixTime()
public static Expr timeInterval(Expr secs)
secs
- the time interval in seconds.
public static Expr gmtTime(Expr secs)
secs
- the time in seconds from the epoch.
public static Expr gmtTimeString(Expr secs)
secs
- the time in seconds from the epoch.
public static Expr localTimeString(Expr secs)
secs
- the time in seconds from the epoch.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |