@freshworks/crayons
Version:
Crayons Web Components library
1 lines • 466 B
JavaScript
System.register([],(function(e){"use strict";return{execute:function(){e("f",t);function t(e){var t=e===void 0?{date:new Date,locale:[],options:{}}:e,n=t.date,o=t.locale,a=t.options;var i=new Date(n);if(isNaN(i.getMilliseconds())){return undefined}return new Intl.DateTimeFormat(o||[],{weekday:a.weekday,year:a.year,month:a.month,day:a.day,hour:a.hour,minute:a.minute,second:a.second,timeZoneName:a.timeZoneName,timeZone:a.timeZone,hour12:a.hour12}).format(i)}}}}));