Skip to content

Commit e2928ce

Browse files
committed
Updated docs and adapted to PowerQuery on-line
1 parent 456df9f commit e2928ce

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

julian/fxGreg2Jul.pq

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
/*
2-
fxGreg2Jul, takes a date in gregorian format and converts it into JD Edwards Julian integer format
3-
*/
41
let
5-
g2j =
6-
(gregdate as date) as number =>
2+
Function = (gregdate as date) as number =>
73
let
84
juliandate =
95
Number.From(
@@ -17,21 +13,22 @@ let
1713
- 1900000
1814
in
1915
juliandate,
20-
//DOCUMENTATION
21-
g2jType =
22-
type function (gregdate as
16+
// DOCUMENTATION
17+
FunctionType = type function (gregdate as
2318
(
2419
type date
2520
meta
2621
[
27-
Documentation.FieldCaption = "Gregorian Date",
22+
Documentation.FieldCaption = "Date",
2823
Documentation.LongDescripcion = "The value in type date of a gregorian date"
2924
]
3025
)) as date
3126
meta
3227
[
33-
Documentation.Name = "Gregorian Date To Julian Date",
28+
Documentation.Author = "Miquel Despuig",
29+
Documentation.Version = "1.0.1", //MajorVersion|MinorVersion|Revision
30+
Documentation.Name = "fxTransformJDETable",
3431
Documentation.LongDescription = "Given gregorian calendar date converts it to a JD Edwards julian date format"
3532
]
3633
in
37-
Value.ReplaceType(g2j, g2jType)
34+
Value.ReplaceType(Function, FunctionType)

0 commit comments

Comments
 (0)