field-time
दिनांक और समय datetime.js जिन चार फ़ील्ड को बेहतर बनाता है, हर एक अपने नीचे मूल इनपुट रखता है, ताकि बिना स्क्रिप्ट वाले पाठक को सादा नियंत्रण मिले, टूटा हुआ नहीं।
वही आवरण, इस बार मूल समय इनपुट के चारों ओर। यह संवर्धन कैलेंडर नहीं, घड़ी पढ़ता है।
हर उदाहरण असली है, पर उसके लिंक कहीं नहीं ले जाते। HTML कॉपी करने के लिए मार्कअप दिखाता है।
उन्नत इनपुट: लिखें "साढ़े सात" या "दोपहर"
इसे <section rst-box><form rst-form> के अंदर रखें।
<div rst-field >
<label rst-field-label for ="time_live" >प्रवेश शुरू</label >
<input rst-input id ="time_live" name ="time_live" type ="time" value ="19:30" aria-describedby ="time_live-hint" data-rst-time data-rst-date-words ="{"ago":"पहले","am":"सुबह|पूर्वाह्न|am","at":"बजे|पर","day":"दिन","hour":"घंटा|घंटे","in":"में|बाद","last":"पिछला|पिछले|पिछली","midnight":"मध्यरात्रि|आधी रात","minute":"मिनट","month":"महीना|महीने|माह","next":"अगला|अगले|अगली","noon":"दोपहर","pm":"शाम|अपराह्न|pm|रात","today":"आज","tomorrow":"कल","week":"सप्ताह|हफ़्ता|हफ्ता|हफ़्ते|हफ्ते","yesterday":"बीता कल|गुज़रा कल"}" data-rst-date-set ="सेट करें" data-rst-date-hint ="आज़माएँ: {example}" data-rst-date-pick ="कैलेंडर खोलें" data-rst-date-pick-time ="घड़ी खोलें" data-rst-date-results ="{n} सुझाव" data-rst-date-result-one ="1 सुझाव" data-rst-date-quick-today ="आज" data-rst-date-quick-tomorrow ="कल" data-rst-date-quick-next-week ="एक सप्ताह बाद" data-rst-date-quick-plus-1h ="एक घंटे बाद" data-rst-date-quick-plus-2h ="दो घंटे बाद" data-rst-date-quick-end-of-day ="उस दिन के अंत में" data-rst-date-quick-next-day ="अगले दिन उसी समय" >
<small rst-field-hint id ="time_live-hint" >स्थानीय समय।</small >
</div >
अनिवार्य, त्रुटि के साथ
इसे <section rst-box><form rst-form> के अंदर रखें।
<div rst-field >
<label rst-field-label for ="time_error" >प्रवेश शुरू <span rst-field-required aria-hidden ="true" >*</span ></label >
<input rst-input id ="time_error" name ="time_error" type ="time" required aria-invalid ="true" aria-describedby ="time_error-error" data-rst-time data-rst-date-words ="{"ago":"पहले","am":"सुबह|पूर्वाह्न|am","at":"बजे|पर","day":"दिन","hour":"घंटा|घंटे","in":"में|बाद","last":"पिछला|पिछले|पिछली","midnight":"मध्यरात्रि|आधी रात","minute":"मिनट","month":"महीना|महीने|माह","next":"अगला|अगले|अगली","noon":"दोपहर","pm":"शाम|अपराह्न|pm|रात","today":"आज","tomorrow":"कल","week":"सप्ताह|हफ़्ता|हफ्ता|हफ़्ते|हफ्ते","yesterday":"बीता कल|गुज़रा कल"}" data-rst-date-set ="सेट करें" data-rst-date-hint ="आज़माएँ: {example}" data-rst-date-pick ="कैलेंडर खोलें" data-rst-date-pick-time ="घड़ी खोलें" data-rst-date-results ="{n} सुझाव" data-rst-date-result-one ="1 सुझाव" data-rst-date-quick-today ="आज" data-rst-date-quick-tomorrow ="कल" data-rst-date-quick-next-week ="एक सप्ताह बाद" data-rst-date-quick-plus-1h ="एक घंटे बाद" data-rst-date-quick-plus-2h ="दो घंटे बाद" data-rst-date-quick-end-of-day ="उस दिन के अंत में" data-rst-date-quick-next-day ="अगले दिन उसी समय" >
<small rst-field-error id ="time_error-error" >साउंड चेक के बाद का कोई समय चुनें।</small >
</div >
सीमाओं के साथ
इसे <section rst-box><form rst-form> के अंदर रखें।
<div rst-field >
<label rst-field-label for ="time_bounded" >नौ और ग्यारह के बीच</label >
<input rst-input id ="time_bounded" name ="time_bounded" type ="time" value ="19:30" min ="09:00" max ="23:00" data-rst-time data-rst-date-words ="{"ago":"पहले","am":"सुबह|पूर्वाह्न|am","at":"बजे|पर","day":"दिन","hour":"घंटा|घंटे","in":"में|बाद","last":"पिछला|पिछले|पिछली","midnight":"मध्यरात्रि|आधी रात","minute":"मिनट","month":"महीना|महीने|माह","next":"अगला|अगले|अगली","noon":"दोपहर","pm":"शाम|अपराह्न|pm|रात","today":"आज","tomorrow":"कल","week":"सप्ताह|हफ़्ता|हफ्ता|हफ़्ते|हफ्ते","yesterday":"बीता कल|गुज़रा कल"}" data-rst-date-set ="सेट करें" data-rst-date-hint ="आज़माएँ: {example}" data-rst-date-pick ="कैलेंडर खोलें" data-rst-date-pick-time ="घड़ी खोलें" data-rst-date-results ="{n} सुझाव" data-rst-date-result-one ="1 सुझाव" data-rst-date-quick-today ="आज" data-rst-date-quick-tomorrow ="कल" data-rst-date-quick-next-week ="एक सप्ताह बाद" data-rst-date-quick-plus-1h ="एक घंटे बाद" data-rst-date-quick-plus-2h ="दो घंटे बाद" data-rst-date-quick-end-of-day ="उस दिन के अंत में" data-rst-date-quick-next-day ="अगले दिन उसी समय" >
</div >
Plain: बिना कुछ जोड़े मूल इनपुट
इसे <section rst-box><form rst-form> के अंदर रखें।
<div rst-field >
<label rst-field-label for ="time_plain" >प्रवेश शुरू</label >
<input rst-input id ="time_plain" name ="time_plain" type ="time" value ="19:30" >
</div >