1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7372],{73149:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>f,frontMatter:()=>r,metadata:()=>a,toc:()=>c});var i=n(85893),s=n(11151);const r={sidebar_position:27,description:"Display the date from self.info.date formatted with self.datetime-format.",toc_max_heading_level:2},o="display-info-date",a={id:"reference/utils/display-info-date",title:"display-info-date",description:"Display the date from self.info.date formatted with self.datetime-format.",source:"@site/docs/reference/utils/display-info-date.mdx",sourceDirName:"reference/utils",slug:"/reference/utils/display-info-date",permalink:"/docs/reference/utils/display-info-date",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:27,frontMatter:{sidebar_position:27,description:"Display the date from self.info.date formatted with self.datetime-format.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"section-relationship",permalink:"/docs/reference/utils/section-relationship"},next:{title:"markup-text",permalink:"/docs/reference/utils/markup-text"}},d={},c=[{value:"self : <TypeLink></TypeLink>",id:"self",level:3}];function l(e){const t={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",strong:"strong",...(0,s.a)(),...e.components},{Param:n,Parameters:r,Signature:o,SignatureName:a,SignatureParam:d,SourceLink:c,TypeLink:l}=t;return n||p("Param",!0),r||p("Parameters",!0),o||p("Signature",!0),a||p("SignatureName",!0),d||p("SignatureParam",!0),c||p("SourceLink",!0),l||p("TypeLink",!0),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{id:"display-info-date",children:"display-info-date"}),"\n",(0,i.jsx)(o,{children:(0,i.jsxs)("code",{children:[(0,i.jsx)(a,{children:"display-info-date"}),"(",(0,i.jsx)(d,{children:(0,i.jsx)(t.a,{href:"#self",children:"self"})}),")",(0,i.jsx)(c,{href:"https://github.com/touying-typ/touying/blob/main/src/utils.typ#L854"})]})}),"\n",(0,i.jsxs)(t.p,{children:["Display the date from ",(0,i.jsx)(t.code,{children:"self.info.date"})," formatted with ",(0,i.jsx)(t.code,{children:"self.datetime-format"}),"."]}),"\n",(0,i.jsxs)(t.p,{children:["Returns the date as a formatted string when ",(0,i.jsx)(t.code,{children:"self.info.date"})," is a ",(0,i.jsx)(t.code,{children:"datetime"}),", or returns it as-is when it is already ",(0,i.jsx)(t.code,{children:"content"}),"."]}),"\n",(0,i.jsxs)(r,{children:[(0,i.jsxs)(t.h3,{id:"self",children:["self : ",(0,i.jsx)(l,{type:"dictionary"})]}),(0,i.jsx)(n,{children:(0,i.jsxs)(t.p,{children:["The presentation context (must have ",(0,i.jsx)(t.code,{children:"self.info.date"}),")."]})})]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Returns:"})," ",(0,i.jsx)(l,{type:"content"})," | ",(0,i.jsx)(l,{type:"str"})]})]})}function f(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}function p(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,t,n)=>{n.d(t,{Z:()=>a,a:()=>o});var i=n(67294);const s={},r=i.createContext(s);function o(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.