mclocks-datetime-util 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.js +5 -5
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -150,10 +150,10 @@ server.tool(
|
|
|
150
150
|
"The source value to convert. Can be a datetime string (e.g. '2024-01-15T10:30:00Z', '2024-01-15 10:30:00 UTC') or an epoch number (e.g. '1705312200')."
|
|
151
151
|
),
|
|
152
152
|
timezones: z.array(z.string()).optional().describe(
|
|
153
|
-
"Target timezones
|
|
153
|
+
"Target timezones in IANA tz database format. If omitted, uses timezones from mclocks config or built-in defaults. You should usually omit this parameter to use the user's mclocks configured timezones."
|
|
154
154
|
),
|
|
155
155
|
source_timezone: z.string().optional().describe(
|
|
156
|
-
"Timezone of the source datetime for interpretation
|
|
156
|
+
"Timezone of the source datetime in IANA tz database format for interpretation. Only used when source is a datetime string without timezone info. If omitted, uses convtz from mclocks config if available."
|
|
157
157
|
),
|
|
158
158
|
epoch_unit: z.enum(["seconds", "milliseconds", "microseconds", "nanoseconds"]).optional().describe(
|
|
159
159
|
"Unit of the epoch timestamp. Defaults to 'seconds'. Only used when source is a numeric value."
|
|
@@ -235,7 +235,7 @@ server.tool(
|
|
|
235
235
|
"Get the current time in specified timezones.",
|
|
236
236
|
{
|
|
237
237
|
timezones: z.array(z.string()).optional().describe(
|
|
238
|
-
"Timezones
|
|
238
|
+
"Timezones in IANA tz database format. If omitted, uses timezones from mclocks config or built-in defaults. You should usually omit this parameter to use the user's mclocks configured timezones."
|
|
239
239
|
),
|
|
240
240
|
},
|
|
241
241
|
async ({ timezones }) => {
|
|
@@ -273,7 +273,7 @@ server.tool(
|
|
|
273
273
|
"Day of the week (e.g. 'Monday', 'friday', 'mon', 'thu'). Case-insensitive. English only."
|
|
274
274
|
),
|
|
275
275
|
timezone: z.string().optional().describe(
|
|
276
|
-
"Timezone to determine 'today'
|
|
276
|
+
"Timezone in IANA tz database format to determine 'today'. If omitted, uses convtz from mclocks config if available, otherwise UTC."
|
|
277
277
|
),
|
|
278
278
|
},
|
|
279
279
|
async ({ weekday, timezone }) => {
|
|
@@ -366,7 +366,7 @@ server.tool(
|
|
|
366
366
|
"Target day of month (1-31). Defaults to 1 if omitted."
|
|
367
367
|
),
|
|
368
368
|
timezone: z.string().optional().describe(
|
|
369
|
-
"Timezone to determine 'today'
|
|
369
|
+
"Timezone in IANA tz database format to determine 'today'. If omitted, uses convtz from mclocks config if available, otherwise UTC."
|
|
370
370
|
),
|
|
371
371
|
},
|
|
372
372
|
async ({ year, month, day, timezone }) => {
|