Date and time notation in Nepal
YYYY-MM-DD is official Nepali Vikram Samvat. An example of Vikram Samvat YYYY-MM-DD usage used is the online news portal Onlinekhabar.[1] But for Gregorian calendar DD-MM-YY . The DD-MM-YY is the predominant short form of the numeric date usage. Almost all government documents need to be filled up in the YYYY-MM-DD format. An example of YYYY-MM-DD usage is the passport application form.[2]
Time
The 12-hour notation is widely used in daily life, written communication, and is used in spoken language. The 24-hour notation is used in rare situations where there would be widespread ambiguity. Examples plane departure and landing timings. A colon is widely used to separate hours, minutes and seconds (e.g., 08:00:20).
gollark: No, I have that stuff done.
gollark: I want a *different* set of "OPERATIONS ON RELEVANT NODE THING" and no HTML generation at the end, and it would be bees to just copy-paste the function here.
gollark: As of now, my code does```nimproc renderToHtml*(input: string): string = let wlRegex = re"\[\[([^:\]]+):?([^\]]+)?\]\]" let opt = CMARK_OPT_UNSAFE or CMARK_OPT_FOOTNOTES or CMARK_OPT_STRIKETHROUGH_DOUBLE_TILDE or CMARK_OPT_TABLE_PREFER_STYLE_ATTRIBUTES # create parser instance let str: cstring = input len: csize_t = len(input).csize_t parser: ParserPtr = cmark_parser_new(opt.cint) if parser == nil: raise newException(CatchableError, "failed to initialize parser") defer: cmark_parser_free(parser) [further initialization stuff] # parse document, get AST cmark_parser_feed(parser, str, len) let doc = cmark_parser_finish(parser) defer: cmark_node_free(doc) if doc == nil: raise newException(CatchableError, "parsing failed - should not occur") # iterate over AST using built-in cmark-gfm AST iteration thing for (evType, node) in cmarkTree(doc): # if it is a text node [OPERATIONS ON RELEVANT NODE THING] let html: cstring = cmark_render_html(doc, opt.cint, cmark_parser_get_syntax_extensions(parser)) defer: free(html) result = $html```
gollark: cmark. I will explain.
gollark: Hmm. Gibson, you use nim, yes? How can I nicely™ abstract this C library?
References
- "सरकारसँग मिलेर जलविद्युतमा लगानी गर्ने हो ? यसरी भर्नुहोस् अनलाइन फारम". Onlinekhabar. Retrieved 9 January 2017.
- "Passport Application Form" (PDF). Department Of Passports. Archived from the original (PDF) on 19 November 2016. Retrieved 9 January 2017.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.