LiquidAI/LFM2-WebGPU
94
1/**2 * Get the current date and time.3 * @returns {{ iso: string, local: string }} The current date and time as ISO and local time strings.4 */5export function get_time() {6 const now = new Date();7 return {8 iso: now.toISOString(),9 local: now.toLocaleString(undefined, {10 dateStyle: "full",11 timeStyle: "long",12 }),13 };14}15 16export default (input, output) =>17 React.createElement(18 "div",19 { className: "bg-amber-50 border border-amber-200 rounded-lg p-4" },20 React.createElement(21 "div",22 { className: "flex items-center mb-2" },23 React.createElement(24 "div",25 {26 className:27 "w-8 h-8 bg-amber-100 rounded-full flex items-center justify-center mr-3",28 },29 "🕐",30 ),31 React.createElement(32 "h3",33 { className: "text-amber-900 font-semibold" },34 "Current Time",35 ),36 ),37 React.createElement(38 "div",39 { className: "text-sm space-y-1" },40 React.createElement(41 "p",42 { className: "text-amber-700 font-mono" },43 output.local,44 ),45 React.createElement(46 "p",47 { className: "text-amber-600 text-xs" },48 new Date(output.iso).toLocaleString(),49 ),50 ),51 );52 