赣州市洪水风险预警系统三维版本
guoshilong
2023-02-21 8a6a1f340e249ca4e253f52a99a46ef44e7f0f00
1
2
3
//>>built
define(["dojo/_base/lang","../_base","../utils/date"],function(f,g,e){var c=f.getObject("filter.dates",!0,g);f.mixin(c,{_toDate:function(a){if(a instanceof Date)return a;a=new Date(a);return a.getTime()==(new Date(0)).getTime()?"":a},date:function(a,b){return(a=c._toDate(a))?e.format(a,b||"N j, Y"):""},time:function(a,b){return(a=c._toDate(a))?e.format(a,b||"P"):""},timesince:function(a,b){a=c._toDate(a);if(!a)return"";var d=e.timesince;return b?d(b,a):d(a)},timeuntil:function(a,b){a=c._toDate(a);
if(!a)return"";var d=e.timesince;return b?d(b,a):d(new Date,a)}});return c});