@@ -92,7 +92,6 @@ $\color{skyblue}{Syntax}$
9292[partial ] set < variablename > = expression
9393```
9494
95-
9695#### Data Types
9796** Simple Types : **
9897###### Number
@@ -111,7 +110,7 @@ let hasValue = true
111110let allow = false
112111```
113112###### Date
114- Simpleflow does not recognize date type directly , but this can be declared by using built - in date function .
113+ Use date function to declare a variable as date type .
115114```csharp
116115let birthday = $date (y :1980 , m : 1 , d : 1 )
117116```
@@ -157,6 +156,7 @@ rule when <predicate> then
157156> <small > condition does not allow expression. If you need to write expression
158157 declare variable and write expression and use that variable in predicate. This does not support nested rules to avoid code complexity</small>
159158
159+
160160#### Emitters
161161
162162$\color{skyblue}{Syntax}$
@@ -178,34 +178,36 @@ $<function_name>(param_name1: value1, param_name2: value2, ...)
178178
179179###### Date Functions
180180
181- * $\color{green }{\$ Date(y: int, m: int, d: int, [ h: int , mn: int, s: int] )}$
181+ * $\color{#4686f2 }{\$ Date(y: int, m: int, d: int, [ h: int , mn: int, s: int] )}$
182182 ``` csharp
183183 // Examples
184184 let d1 = $Date (y : 2022 , m : 7 , d :11 )
185185 let d2 = $Date (m : 10 , d :25 , y : 2022 )
186186 let t1 = $Date (m : 10 , d :25 , y : 2022 , h :13 , mn :30 )
187187 ```
188- * $\color {green }{\$GetCurrentDate ()}$
189- * $\color {green }{\$GetCurrentTime ()}$
190- * $\color {green }{\$GetCurrentDateTime (timeZone : " " )}$
191- < br >
192- Check supported time zones here :
193- https : // docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11#time-zones
188+ * $\color {#4686f2 }{\$GetCurrentDate ()}$
189+ * $\color {#4686f2 }{\$GetCurrentTime ()}$
190+ * $\color {#4686f2 }{\$GetCurrentDateTime (timeZone : " " )}$
191+
192+ Check available list of time zones here : < br >
193+ Windows : https : // docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11#time-zones <br>
194+ Ubuntu : https : // manpages.ubuntu.com/manpages/bionic/man3/DateTime::TimeZone::Catalog.3pm.html <br>
195+
194196 ```csharp
195197 let today = $GetCurrentDateTime ()
196198 let todayEst = $GetCurrentDateTime ( timezone : " Eastern Standard Time" )
197199 ```
198200
199201###### String Functions
200- * $\color {green }{\$Substring (input : string , startIndex :int , length : int )}$
201- * $\color {green }{\$IndexOf (input : string , value :string , startIndex : int ) }$
202- * $\color {green }{\$Length (input : string ) }$
203- * $\color {green }{\$Contains (input : string , value :string ) }$
204- * $\color {green }{\$StartsWith (input : string , value :string ) }$
205- * $\color {green }{\$EndsWith (input : string , value :string ) }$
206- * $\color {green }{\$Trim (input : string , value :string ) }$
207- * $\color {green }{\$Match (input : string , pattern :string ) }$
208- * $\color {green }{\$Concat (value1 : string , value2 :string , value3 :string , value4 :string , value5 :string )}$
202+ * $\color {# 4686f2 }{\$Substring (input : string , startIndex :int , length : int )}$
203+ * $\color {# 4686f2 }{\$IndexOf (input : string , value :string , startIndex : int ) }$
204+ * $\color {# 4686f2 }{\$Length (input : string ) }$
205+ * $\color {# 4686f2 }{\$Contains (input : string , value :string ) }$
206+ * $\color {# 4686f2 }{\$StartsWith (input : string , value :string ) }$
207+ * $\color {# 4686f2 }{\$EndsWith (input : string , value :string ) }$
208+ * $\color {# 4686f2 }{\$Trim (input : string , value :string ) }$
209+ * $\color {# 4686f2 }{\$Match (input : string , pattern :string ) }$
210+ * $\color {# 4686f2 }{\$Concat (value1 : string , value2 :string , value3 :string , value4 :string , value5 :string )}$
209211 ```csharp
210212 let value = $Concat ( value1 : " I " , value2 : " got it" )
211213 ```
@@ -397,9 +399,3 @@ Below statement throws exception:
397399 let address = {City : " Ny" }
398400 let o = {Id : 2 , Name : " John" , Address : address }
399401 ```
400-
401-
402-
403-
404-
405-
0 commit comments