tounix
Privateunrated
Content
55 lines{delete}
{override}
{embed(color):#ffffff}
{=(pre):!}
{=(tag):tounix}
{=(footer):{pre}{tag} <YYYY-MM-DD HH:MM:SS> (+/-offset#)}
{=(notes):`Return any date-time in Unix as well as each dynamic timestamp format. Default timezone is UTC, an optional +/- offset can be included. Run the command alone for the current time.`
**FORMAT:** `{pre}{tag} YYYY-MM-DD HH:MM:SS +/-#`
**USAGE:** `{pre}{tag} 2022-04-30 00:00:00 +5`}
{=(items):{join(~):{args}}}
{=(i1):{list(0):{items}}}
{=(i2):{list(1):{items}}}
{=(i3):{list(2):{items}}}
{=(i4):{list(3):{items}}}
{=(i5):{list(4):{items}}}
{=(date):{i1}}
{=(time):{i2}}
{=(datetime):{i1} {i2}}
{=(rest):{i3} {i4} {i5}}
{=(pcheck):{in(+):{rest}}}
{=(mcheck):{in(-):{rest}}}
{=(pmchecks):{pcheck} {mcheck}}
{=(pmcheck):{contains(true):{pmchecks}}}
{=(pm):{if({pcheck}==true):+|{if({mcheck}==true):-}}}
{=(offset):{replace({pm},):{rest}}}
{=(hour):3600}
{=(seconds):{math:trunc({hour})/trunc({offset})}}
{=(utime):{strf({datetime}):%s}}
{=(converted):{m:trunc({utime}){pm}trunc({seconds})}}
{=(ts):{if({i2}==):{unix}|{converted}}}
{=(text):`{ts}`}
{=(t1):**__CONVERT TO UNIX__**}
{=(d1):{tips}
**__TIMESTAMP: {converted}__**
**<t:{converted}:F>**
`<t:{converted}:F>`
**<t:{ts}:f>**
`<t:{ts}:f>`
**<t:{ts}:D>**
`<t:{ts}:D>`
**<t:{ts}:d>**
`<t:{ts}:d>`
**<t:{ts}:T>**
`<t:{ts}:T>`
**<t:{ts}:t>**
`<t:{ts}:t>`
**<t:{ts}:R>**
`<t:{ts}:R>`}
{text}Embed
1 line{"color": 5198940, "title": "{t1}", "footer": {"text": "{footer}"}, "description": "{d1}"}Raw JSON
{
"id": 1347356,
"created_at": "2022-03-28T03:34:35.000Z",
"tag_name": "tounix",
"nsfw": false,
"owner_id": "948035408388816916",
"uses": 54,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "921292644586500117",
"sharer": "948035408388816916",
"content": "{delete}\n{override}\n{embed(color):#ffffff}\n\n{=(pre):!}\n{=(tag):tounix}\n{=(footer):{pre}{tag} <YYYY-MM-DD HH:MM:SS> (+/-offset#)}\n{=(notes):`Return any date-time in Unix as well as each dynamic timestamp format. Default timezone is UTC, an optional +/- offset can be included. Run the command alone for the current time.`\n**FORMAT:** `{pre}{tag} YYYY-MM-DD HH:MM:SS +/-#`\n**USAGE:** `{pre}{tag} 2022-04-30 00:00:00 +5`}\n\n{=(items):{join(~):{args}}}\n{=(i1):{list(0):{items}}}\n{=(i2):{list(1):{items}}}\n{=(i3):{list(2):{items}}}\n{=(i4):{list(3):{items}}}\n{=(i5):{list(4):{items}}}\n\n{=(date):{i1}}\n{=(time):{i2}}\n{=(datetime):{i1} {i2}}\n\n{=(rest):{i3} {i4} {i5}}\n{=(pcheck):{in(+):{rest}}}\n{=(mcheck):{in(-):{rest}}}\n{=(pmchecks):{pcheck} {mcheck}}\n{=(pmcheck):{contains(true):{pmchecks}}}\n\n{=(pm):{if({pcheck}==true):+|{if({mcheck}==true):-}}}\n{=(offset):{replace({pm},):{rest}}}\n{=(hour):3600}\n{=(seconds):{math:trunc({hour})/trunc({offset})}}\n{=(utime):{strf({datetime}):%s}}\n{=(converted):{m:trunc({utime}){pm}trunc({seconds})}}\n{=(ts):{if({i2}==):{unix}|{converted}}}\n{=(text):`{ts}`}\n{=(t1):**__CONVERT TO UNIX__**}\n{=(d1):{tips}\n\n**__TIMESTAMP: {converted}__**\n**<t:{converted}:F>**\n`<t:{converted}:F>` \n**<t:{ts}:f>**\n`<t:{ts}:f>` \n**<t:{ts}:D>**\n`<t:{ts}:D>` \n**<t:{ts}:d>**\n`<t:{ts}:d>` \n**<t:{ts}:T>**\n`<t:{ts}:T>` \n**<t:{ts}:t>**\n`<t:{ts}:t>` \n**<t:{ts}:R>**\n`<t:{ts}:R>`}\n{text}",
"embed": "{\"color\": 5198940, \"title\": \"{t1}\", \"footer\": {\"text\": \"{footer}\"}, \"description\": \"{d1}\"}",
"last_fetched": "2026-10-20T18:41:45.387Z"
}