vipsi - the friendly vip script interpreter

Functions

Numeric functions

dateval

<number> = Numeric functions: datevaldateval <text>
<number> = Numeric functions: datevaldateval ( <text> )

Text functions: convert
Instructions: convert
Convert
readable date <text> to numeric time Glossary: Valuevalue.

Flow control: returnReturns a numeric Glossary: Valuevalue in Greenwich Mean Time UTC+0:00. Flow control: if … then
Flow control: try … then
The
returned time is in seconds Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
may be fractional. Flow control: if … then
Flow control: try … then
The
time Integer numbers: Base 256base may vary on different systems. On unix systems it is historically Flow control: if … then
Flow control: try … then
the
time since Jan.01 1970.

Operators: Bitwise Not "~"
Operators: Boolean Negation "!"
Note
: Currently (Version 0.8.7) Flow control: if … then
Flow control: try … then
the
returned time Glossary: Valuevalue is in List functions: localslocal time. List functions: thisThis will be fixed. Vipsi command syntax: Functions
Functions
Glossary: Function
Function
Text functions: datestrdatestr also still works with Flow control: if … then
Flow control: try … then
the
List functions: localslocal time, so List functions: thisthis is Operators: Make Identifier "@"at least consistent.

As with all Vipsi command syntax: Functions
Functions
Glossary: Function
functions
which accept exactly one Vipsi command syntax: Arguments
Glossary: Arguments
argument
Flow control: if … then
Flow control: try … then
the
Separators: Round brackets "( … )"
Functions with varying return types: bracket expression "()"
parenthesis
are optional Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
may be omitted Flow control: if … then
Flow control: if … then
if the
Vipsi command syntax: Arguments
Glossary: Arguments
argument
is no Vipsi command syntax: Expressions
Glossary: Expression
expression
with Vipsi command syntax: Operators
Operators
Glossary: Operator
operators
.

e.g.:

vipsi> Numeric functions: datevaldateval "2002-04-01 12:00"  = 1017658800
vipsi> Numeric functions: datevaldateval "2002.04"  = 1017529200
vipsi>  

Valid HTML   Valid CSS