Logo Hof Cp Date Time

Hof Cp Date Time

Tổ chức
openreachtech
hof-cp-date-time

Use when building a date and/or time selection control in a repo that consumes @openreachtech/furo-vue, such as "date picker", "pick a date", "time input", "date and time field", "schedule at". Routes to FuroDatePicker, FuroTimeField, FuroDateTimePicker. Also use when showing a timestamp on screen, such as "show the updated time", "format a date", "display in the user's time zone".

Tổng quan

Nhà phát hànhopenreachtech
Kho mãhora-skills-ort-furo
Tên kỹ nănghof-cp-date-time
Sao
32
Bản fork
0
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được openreachtech công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Hof Cp Date Time trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-date-time
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openreachtech/hora-skills-ort-furo.git /tmp/hora-skills-ort-furo
mkdir -p .claude/skills
cp -r /tmp/hora-skills-ort-furo/kit/skills/hof-cp-date-time .claude/skills/hof-cp-date-time
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Hof Cp Date Time trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Hof Cp Date Time ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Hof Cp Date Time với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

FuroDatePicker / FuroTimeField / FuroDateTimePicker

Three molecule-layer controls for date/time selection. FuroDatePicker is a calendar-backed date field (segments + popover calendar) whose wire value is a YYYY-MM-DD string. FuroTimeField is a segmented inline time input (no popover) whose wire value is HH:MM:SS. FuroDateTimePicker composes both of them into a single popover control whose wire value is the combined YYYY-MM-DDTHH:MM:SS string — use it instead of manually pairing a date picker and a time field side by side. Pick exactly one of the three based on what the underlying data represents (date only, time only, or a combined timestamp), not on how you want it to look.

  • Layer: molecule (all three)
  • Import: import { FuroDatePicker, FuroTimeField, FuroDateTimePicker } from '@openreachtech/furo-vue'
  • Manifest entries: node_modules/@openreachtech/furo-vue/public/furo-vue/components.json → components[].name equal to 'FuroDatePicker', 'FuroTimeField', or 'FuroDateTimePicker'

Read the manifest before writing markup if you need to confirm this information is still current — the library may have added props/events since this skill was written.

When NOT to use

  • Plain single-line text/number input with no calendar/time semantics → use hof-cp-text-field instead.
  • You need a date range (start + end) rather than a single date — none of these three model a range; check the manifest for a dedicated range component before hand-rolling two FuroDatePickers.
  • Needs a label / hint / error message wrapper around it → wrap in FuroControlBlock (see hof-cp-control-block), don't hand-roll a <label>.
  • You only need an inline click-to-edit display/edit toggle for an arbitrary value (not specifically a date/time widget) → see hof-cp-editable-field.
  • The trigger for opening a floating panel is a plain button/icon with arbitrary content (not a date field) → see hof-cp-popover or hof-cp-dropdown-menu.

Props

FuroDatePicker

PropTypeDefaultNotes
parcelDatePickerParcel | nullnullReactive data object. Furo-only keys are stripped before passthrough to the underlying primitive.
triggerParcelRecord<string, unknown> | nullnullPassed to the date field / trigger via v-bind.
contentParcelRecord<string, unknown> | nullnullPassed to the popover content via v-bind.

FuroTimeField

PropTypeDefaultNotes
parcelTimeFieldParcel | nullnullReactive data object. Furo-only keys are stripped before passthrough to the underlying primitive.

FuroDateTimePicker

PropTypeDefaultNotes
parcelDateTimePickerParcel | nullnullReactive data object. Molecule-only keys are consumed here and used to derive the child parcels.

parcel fields

FuroDatePicker parcel

FieldTypeDefaultNotes
valuestring | null—Currently selected date as YYYY-MM-DD or null.
invalidboolean—Shows error chrome and sets aria-invalid.
placeholderstring | null—Placeholder text for the date field.
disabledboolean—Disables all interaction.
minValuestring | null—Minimum selectable date (YYYY-MM-DD). Earlier dates are non-interactive.
maxValuestring | null—Maximum selectable date (YYYY-MM-DD). Later dates are non-interactive.
displayFormatstring | null—Reserved for v1.1 localized display format (not yet applied).
timezonestring | nullnullIANA timezone identifier. Interprets Date object inputs before normalization; no effect on YYYY-MM-DD strings.
closeOnSelectboolean | nulltrueWhether the popover closes when a date is selected.
localestring | nullbrowser localeDrives the date field's segment order; falls back to 'en' outside the browser.
preventDeselectboolean | nulltrueWhen true, re-selecting the selected date keeps it instead of clearing.
todayButtonTextstring | null'Today'Label for the footer Today button; pass null to hide it.
clearButtonTextstring | null'Clear'Label for the footer Clear button; pass null to hide it.

FuroTimeField parcel

FieldTypeDefaultNotes
valuestring | null—Current time as HH:MM:SS (or HH:MM) or null. The context also accepts Date / Time at the boundary.
invalidboolean—Forces error chrome and aria-invalid (external validation).
placeholderstring | null—Placeholder text for the time field.
disabledboolean—Disables all interaction.
readonlyboolean—Segments are focusable but not editable.
minValuestring | null—Minimum time (HH:MM:SS). Out-of-range values are flagged, not clamped.
maxValuestring | null—Maximum time (HH:MM:SS). Out-of-range values are flagged, not clamped.
timeFormatnumber | nulllocale default12 or 24. When unset, the locale default applies.
granularity'hour' | 'minute' | 'second' | null'minute'Controls visible segments.
stepnumber | null1Step amount for arrow edits and the buttons; the unit follows granularity. Forwarded as native step.
stepSnappingboolean | null—Optional stepSnapping. Forwarded only when explicitly set.
timezonestring | nullnullIANA timezone; normalizes Date inputs to wall-clock parts in that zone. Never forwarded to the primitive.

FuroDateTimePicker parcel

FieldTypeDefaultNotes
valuestring | null—Combined value as YYYY-MM-DDTHH:MM:SS or null. Split into date/time parts and recombined on change.
invalidboolean—Shows error chrome and aria-invalid on the unit shell; also forwarded to both atoms.
placeholderstring | null—Placeholder text for the date field.
disabledboolean—Disables all interaction.
minValuestring | null—Minimum selectable datetime (YYYY-MM-DDTHH:MM:SS). See cross-field rule in features.
maxValuestring | null—Maximum selectable datetime (YYYY-MM-DDTHH:MM:SS). See cross-field rule in features.
timezonestring | nullnullIANA timezone identifier forwarded to both atoms.
granularity'hour' | 'minute' | 'second' | null—Visible time segments. Does not change the wire format (always second precision).
stepnumber | null—Step amount for the time field's increment / decrement buttons.
timeFormatnumber | nulllocale default12 or 24. When unset, the locale default applies.

Events

FuroDatePicker

EventPayloadFires when
change-valueDatePickerEmitPayloadFired when the user selects a date.
commit-valueDatePickerEmitPayloadFired on the same selection event (single-date close-on-select UX).
update:valuestring | nullISO YYYY-MM-DD string or null. Suitable for v-model:value.

FuroTimeField

EventPayloadFires when
change-valueTimeFieldEmitPayloadFired when the user edits a segment.
commit-valueTimeFieldEmitPayloadFired on the same edit event (inline single-region UX).
update:valuestring | nullHH:MM:SS string or null. Suitable for v-model:value.

FuroDateTimePicker

EventPayloadFires when
change-valueDateTimePickerEmitPayloadFired when either the date or time part changes.
commit-valueDateTimePickerEmitPayloadFired on the same change event.
update:valuestring | nullCombined YYYY-MM-DDTHH:MM:SS string. Selecting a date sets 12:00:00; null only while no date is set.

Slots

FuroDatePicker

SlotDescription
trigger-iconReplaces the default calendar icon inside the trigger.
prev-iconReplaces the left-arrow icon in the calendar header.
next-iconReplaces the right-arrow icon in the calendar header.
field-suffixCustom content inside the trigger field, after the segments and before the trigger icon.
content-footerCustom content inside the popover, below the calendar.

FuroTimeField

SlotDescription
decrement-iconReplaces the caret-down icon in the decrement stepper.
increment-iconReplaces the caret-up icon in the increment stepper.

FuroDateTimePicker

No slots — the manifest lists an empty slots array for this component.

Fallthrough attributes

class and style compose onto the root of all three. Every other attribute lands as follows:

ComponentAttributes go toidaria-*, data-*
FuroDatePickerthe date picker state root, which renders no elementthe visually hidden inputdropped
FuroTimeFieldthe time field divthe visually hidden inputthe time field div
FuroDateTimePickernothingdroppeddropped

The visually hidden input carries tabindex="-1", so a <label for> aimed at that id points at an element the keyboard never reaches. Label these controls with an aria-label where it lands, or with visible text beside them.

Usage

vue
<script>
import {
  FuroDatePicker,
  FuroTimeField,
  FuroDateTimePicker,
} from '@openreachtech/furo-vue'

export default {
  components: {
    FuroDatePicker,
    FuroTimeField,
    FuroDateTimePicker,
  },
}
</script>

<template>
  <FuroDatePicker
    v-model:value="form.dueDate"
    :parcel="{ invalid: context.hasDueDateError(), minValue: context.todayIsoDate }"
    placeholder="Select due date"
    @commit-value="context.onCommitDueDate({ payload: $event })"
  />

  <FuroTimeField
    v-model:value="form.startTime"
    :parcel="{ invalid: context.hasStartTimeError(), granularity: 'minute' }"
    placeholder="Select start time"
  />

  <FuroDateTimePicker
    v-model:value="form.scheduledAt"
    :parcel="{ invalid: context.hasScheduledAtError() }"
    placeholder="Select date and time"
  />
</template>

With a label/hint/error wrapper:

vue
<template>
  <FuroControlBlock :parcel="{ label: 'Due date', error: context.dueDateError }">
    <FuroDatePicker
      v-model:value="form.dueDate"
      :parcel="{ invalid: context.hasDueDateError() }"
    />
  </FuroControlBlock>
</template>

Timestamps and the viewer's time zone

A moment in time travels as an ISO 8601 instant carrying its offset, such as 2026-10-13T06:12:21Z, and is shown in the viewer's own time zone. The server stores and returns the instant; the screen alone decides the zone.

Display a timestamp with Intl.DateTimeFormat, passing the locale and leaving timeZone unset, so the browser applies the viewer's zone:

js
formatUpdatedAt ({
  updatedAt,
  locale,
}) {
  return new Intl.DateTimeFormat(locale, {
    dateStyle: 'medium',
    timeStyle: 'short',
  })
    .format(new Date(updatedAt))
}

Do not slice the ISO string or print it as it arrives: either one shows the server's zone, which is UTC for most APIs.

Send what FuroDateTimePicker selects as an instant. Its YYYY-MM-DDTHH:MM:SS value carries no offset, and JavaScript reads such a string as the viewer's local time, so new Date(value).toISOString() turns it into the instant the viewer meant.

A date with no time, such as a birthday or a due date, is not a moment. Keep it as the YYYY-MM-DD string FuroDatePicker emits, and never pass it through new Date(), which reads a date-only string as UTC midnight and can show the day before.

Rules (per project conventions)

  • Pass parcel + use v-model:value — this is the one documented exception to the project's general no-v-model rule, which applies only to custom in-project components, not to furo-vue library components.
  • Never import the underlying headless primitive — only the public FuroDatePicker / FuroTimeField / FuroDateTimePicker exports.
  • Put commit/validation logic in the page/component Context (on{Field}Commit style method), not inline in the template.
  • Prefer FuroDateTimePicker over composing FuroDatePicker and FuroTimeField yourself whenever the underlying data model is a single combined timestamp — it keeps the calendar single-sourced and normalizes the wire format for you.
  • Pass only the parcel keys this skill lists. A component reads the keys it names and ignores the rest, so a mistyped key changes nothing and reports nothing, so check a key against the manifest rather than trusting silence.

Câu hỏi thường gặp

Kỹ năng AI Hof Cp Date Time làm được gì?

Use when building a date and/or time selection control in a repo that consumes @openreachtech/furo-vue, such as "date picker", "pick a date", "time input", "date and time field", "schedule at". Routes to FuroDatePicker, FuroTimeField, FuroDateTimePicker. Also use when showing a timestamp on screen, such as "show the updated time", "format a date", "display in the user's time zone".

Vì sao nên dùng Hof Cp Date Time trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Hof Cp Date Time là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Hof Cp Date Time trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-date-time. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Hof Cp Date Time?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Hof Cp Date Time với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Hof Cp Date Time với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Hof Cp Date Time có miễn phí không?

Có. Kỹ năng này được openreachtech phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇