inconsistent date argument in subscription search using command
Posted: Thu Dec 01, 2022 8:10 pm America/New_York
Dear Support,
I see the search now can be more accurate with hh:mm:ss provided.
But there is a trouble in command without hh:mm:ss provided. As follows, I guess different date formats 2022-12-1 and 2022-12-01 have different meanings in search, 2022-12-1 equals 2022-12-1 00:00:00, but 2022-12-01 equals 2022-12-01 23:59:59. I used the former, thus no today's subscriptions pushed to me.
########################################################
$ curl -d "results_as_file=1&sdate=2022-11-29&edate=2022-12-1&subID=1085&subType=1" https://oceandata.sci.gsfc.nasa.gov/api/file_search
S3A_OL_1_EFR____20221129T155928_20221129T160228_20221129T180450_0179_092_325_2520_MAR_O_NR_002.SEN3.zip
S3A_OL_1_EFR____20221130T153317_20221130T153617_20221130T173647_0179_092_339_2520_MAR_O_NR_002.SEN3.zip
##########################################################
$ curl -d "results_as_file=1&sdate=2022-11-29&edate=2022-12-01&subID=1085&subType=1" https://oceandata.sci.gsfc.nasa.gov/api/file_search
S3A_OL_1_EFR____20221129T155928_20221129T160228_20221129T180450_0179_092_325_2520_MAR_O_NR_002.SEN3.zip
S3A_OL_1_EFR____20221130T153317_20221130T153617_20221130T173647_0179_092_339_2520_MAR_O_NR_002.SEN3.zip
S3A_OL_1_EFR____20221201T150706_20221201T151006_20221201T171826_0179_092_353_2520_MAR_O_NR_002.SEN3.zip
-Yuyuan
I see the search now can be more accurate with hh:mm:ss provided.
But there is a trouble in command without hh:mm:ss provided. As follows, I guess different date formats 2022-12-1 and 2022-12-01 have different meanings in search, 2022-12-1 equals 2022-12-1 00:00:00, but 2022-12-01 equals 2022-12-01 23:59:59. I used the former, thus no today's subscriptions pushed to me.
########################################################
$ curl -d "results_as_file=1&sdate=2022-11-29&edate=2022-12-1&subID=1085&subType=1" https://oceandata.sci.gsfc.nasa.gov/api/file_search
S3A_OL_1_EFR____20221129T155928_20221129T160228_20221129T180450_0179_092_325_2520_MAR_O_NR_002.SEN3.zip
S3A_OL_1_EFR____20221130T153317_20221130T153617_20221130T173647_0179_092_339_2520_MAR_O_NR_002.SEN3.zip
##########################################################
$ curl -d "results_as_file=1&sdate=2022-11-29&edate=2022-12-01&subID=1085&subType=1" https://oceandata.sci.gsfc.nasa.gov/api/file_search
S3A_OL_1_EFR____20221129T155928_20221129T160228_20221129T180450_0179_092_325_2520_MAR_O_NR_002.SEN3.zip
S3A_OL_1_EFR____20221130T153317_20221130T153617_20221130T173647_0179_092_339_2520_MAR_O_NR_002.SEN3.zip
S3A_OL_1_EFR____20221201T150706_20221201T151006_20221201T171826_0179_092_353_2520_MAR_O_NR_002.SEN3.zip
-Yuyuan