Page 1 of 1

inconsistent date argument in subscription search using command

Posted: Thu Dec 01, 2022 8:10 pm America/New_York
by oo_processing
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

Re: inconsistent date argument in subscription search using command

Posted: Fri Dec 02, 2022 11:05 am America/New_York
by dana.r.wilson
Yuyuan
You used the incorrect format please use yyyy-mm-dd or yyyy-mm-dd hh:mm:ss.
https://oceandata.sci.gsfc.nasa.gov/api/file_search_help

Re: inconsistent date argument in subscription search using command

Posted: Fri Dec 02, 2022 5:00 pm America/New_York
by oo_processing
Thanks, I made the correction.

-Yuyuan