Compare commits

...

2 Commits

Author SHA1 Message Date
Brad Arant
8b38617b00 Setup font capability on documentation. 2025-12-03 16:14:25 -08:00
Brad Arant
50a29a4238 Added stub for DATEDIFF function. 2025-12-03 14:55:26 -08:00
5 changed files with 49 additions and 6 deletions

View File

@ -364,7 +364,21 @@ namespace jet {
int unixtime = seconds_since_epoch.count();
string << unixtime;
} else
throw coreutils::Exception("Expecting ) at end of UNIXTIME.");
throw coreutils::Exception("Expecting ) at end of UNIXTIME.");
}
else if(in.ifNextIgnoreCase("DATEDIFF")) {
if(!in.ifNext("("))
throw coreutils::Exception("Expecting ( for DATEDIFF.");
Operand parm1(in, tag);
if(!in.ifNext(","))
throw coreutils::Exception("Expecting , in DATEDIFF expression.");
Operand parm2(in, tag);
if(in.ifNext(")")) {
// TODO: Implement DATEDIFF.
} else
throw coreutils::Exception("Expecting ) at end of DATEDIFF expression.");
} else if(in.ifNextIgnoreCase("true")) {
boolean = true;
string = "true";

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,6 @@
\documentclass{book}
\usepackage{fontspec}
\setmainfont{Roboto}
\title{JET Extension Tags}
\author{Bradford Matthew Arant Sr.}
@ -166,6 +168,8 @@ operators, as follows:
\section{Date Functions}
\subsection{datediff}
\subsection{unixtime}
\section{Math Functions}
@ -176,7 +180,7 @@ Returns the absolute value of the given parameter.
\subsection{acos}
Returns to arc-cosine of the given parameter.
Returns to arc cosine of the given parameter.
\subsection{asin}
@ -208,11 +212,15 @@ Use the random function to return a random number between 0 and 1.
\section{String Functions}
String functions are provided to accelerate the building and parsing of strings passed into the expression. Numbers can be treated as a string or a number depending on the function called and the data state of the values being manipulated.
String functions are provided to accelerate the building and parsing of
strings passed into the expression. Numbers can be treated as a string or
a number depending on the function called and the data state of the values
being manipulated.
\subsection{concat}
The concat function is used to assemble a string by concatenating one or more values to formulate the resulting string.
The concat function is used to assemble a string by concatenating one or
more values to formulate the resulting string.
@ -224,7 +232,7 @@ Use the left function to return the number of characters specified in
the second parameter from the parameter passed as the first parameter.
If the number of characters to return is greater than the length of
the forst parameter then the entire parameter is returned.
the first parameter then the entire parameter is returned.
\subsection{reverse}
@ -560,4 +568,4 @@ a container to process for each row retrieved by the sql statement.
Use the write tag to write data to the local file system.
\end{document}
\end{document}

View File

@ -24,3 +24,24 @@ mktextfm Bookman
mktextfm Bookman
mktextfm Bookman
mktextfm Bookman
mktextfm Georgia
mktextfm Georgia
mktextfm Georgia
mktextfm Georgia/BI
mktextfm Georgia
mktextfm Georgia/B
mktextfm Georgia
mktextfm Georgia/I
mktextfm Georgia
mktextfm Georgia
mktextfm Georgia
mktextfm Georgia
mktextfm Georgia
mktextfm Georgia
mktextfm Georgia
mktextfm PadaukBook
mktextfm PadaukBook
mktextfm PadaukBook
mktextfm Gerramond
mktextfm URWBookman
mktextfm Bookman