:unittest.jdate2date

Test cases for the :jdate2date function

Description: call:unittest.jdate2date
Dependencies: :jdate2date, :Format
Script:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
:unittest.jdate2date
:$created 20080223 :$changed 20080223
:$source https://www.dostips.com
for %%C in (
        "2454520"
        "2454466"
        "2454467"
        "2454472"
        "2454473"
        "2454474"
        "2454475"
    ) do (
    set "jd=%%~C"
    call:jdate2date jd Y M D
    call:Format "[35] [35]." "'%%jd%%'"    "'%%Y%% %%M%% %%D%%'"
)
EXIT /b
Script Output:
 DOS Script Output
---- :unittest.jdate2date - output
'2454520'                           '2008 02 23'                       .
'2454466'                           '2007 12 31'                       .
'2454467'                           '2008 01 01'                       .
'2454472'                           '2008 01 06'                       .
'2454473'                           '2008 01 07'                       .
'2454474'                           '2008 01 08'                       .
'2454475'                           '2008 01 09'                       .
----