timestamp

Privateunrated

Content

97 lines
{=(πŸ“Œ----πŸ’™----COMMENT----πŸ’™----πŸ“Œ):things that need to configured are marked with "πŸ’™----COMMENT----πŸ’™" other COMMENT's are informational only}

{=(ud):{user(id)}}
{=():}
{=(LA):{lower:{args}}}

{=(πŸ’™----COMMENT----πŸ’™):change the following variables to have the values that are true for your server}
{=(prefix):>>}
{=(tagname):timestamp}


{=(πŸ’™----COMMENT----πŸ’™):Optional separators can be edited below if some people dont use the standard "-" and ":"}
{=(datesep):/}
{=(timesep):.}


{=(πŸ’™----COMMENT----πŸ’™):Daylight savings time -- if in effect change the S a D if not make sure it is a D. If it is not practiced at all, make sure it is set to S}
{=(dst):D}

{=(πŸ’™----COMMENT----πŸ’™):to add or remove members copy/delete the entire variable block and adjust the name and correct offset. then adjust the defaulttz block afterwards}
{=(fish):+8}
{=(hunty):{if({dst}==D):-7|-8}}
{=(poo):{if({dst}==D):-5|-6}}
{=(war):+5:30}
{=(arya):{if({dst}==D):+2|+1}}
{=(maba):+6:30}


{=(largs):{replace(-,~):{replace( ,~):{replace(:,~):{replace( -, %):{replace(/,-):{replace(.,:):{args}}}}}}}}
{=(tzgiven):{any({in(+):{largs}}==true|{in(%):{largs}}==true):true}}
{=(tzindex):{replace(%, +):{replace(~, ):{largs}}}}
{=(setoff):{if({list(7):{replace(%,-):{largs}}}==):true|false}}



{=(πŸ’™----COMMENT----πŸ’™):easiest way to add onto the block is to start at the end, copy and paste everything between a set of "| |" and paste before the end before "|+0" (make sure you have a | before and after what you just pasted, incase you copied or didnt copy them, just makes sure there is only one) then add one more curl bracket to the very end like this one ==> }

{=(defaulttz):{if({tzgiven}==true):{LA(3)}|{if({ud}==256063688497168384):{fish}|{if({ud}==727304173779157123):{hunty}|{if({ud}==560658014202363942):{poo}|{if({ud}==947346447483961365):{war}|{if({ud}==565593628110749714):{arya}|{if({ud}==756457458578227301):{maba}|+0}}}}}}}}

{=(πŸ’™----COMMENT----πŸ’™):edit the names in the block below. This is a variable block with reply you get using !timestamp help}
{=(helpcmd):**TIMESTAMP COMMAND USAGE**: 
```properties
SYNTAX: !timestamp yy-mm-dd HH:MM:SS [tz]```
Note: Timezone is optional. This tag is configured to adjust to the following member's timezone automatically:
> `Fishie`, `Hunty`, `Pookie`, `Arya`, `Warrior`, `Mamba`
Otherwise the default timezone is UTC+0.

**Command usage examples :**
`{prefix}{tagname}` Defaults to current date and time if nothing is provided.
`{prefix}{tagname} 19-01-01 00:00 +8` Example using a timezone.
`{prefix}{tagname} 22-10-10 12:00` Will return in timeszone of author or UTC+0

*Also: There are additional time formats: `d`, `T`, `F` (Replace the letter at the end of the resulting stamp*)}


{=(πŸ“Œ----COMMENT----πŸ“Œ):DO NOT EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU'RE DOING}

{break({LA(1)}==help):{helpcmd}}


{=(date):{any({in(-):{1}}==true|{in({datesep}):{1}}==true):{replace({datesep},-):20{1}}|{strf:%Y-%m-%d}}}

{=(hours):{list(0):{replace(:,~):{replace({timesep},:):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}}}}
{{if({list(1):{replace(:,~):{replace({timesep},:):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}}}==):=(minutes)::00|=(minutes)::{list(1):{replace(:,~):{replace({timesep},:):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}}}}}
{{if({list(2):{replace(:,~):{replace({timesep},:):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}}}==):=(seconds)::00|=(seconds)::{list(2):{replace(:,~):{replace({timesep},:):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}}}}}

{{any({in({timesep}):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}==true|{in(:):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}==true):=(time):{hours}{minutes}{seconds}|=(time):{strf:%X}}}

{break({any({list(1):{replace(-,~):{date}}}>12|{list(1):{replace(-,~):{date}}}<1):true}==true):Invalid Month}
{break({any({list(2):{replace(-,~):{date}}}>31|{list(1):{replace(-,~):{date}}}<1):true}==true):Invalid Day}
{break({any({list(0):{replace(:,~):{time}}}>24|{list(0):{replace(-,~):{date}}}<0):true}==true):Invalid Hour}
{break({any({list(1):{replace(:,~):{time}}}>60|{list(1):{replace(-,~):{date}}}<0):true}==true):Invalid Minute}
{break({any({list(2):{replace(:,~):{time}}}>60|{list(2):{replace(-,~):{date}}}<0):true}==true):Invalid Second}


{{any({in({timesep}30):{defaulttz}}==true|{in(:30):{defaulttz}}==true):=(offset):+1800}}
{{any({in({timesep}15):{defaulttz}}==true|{in(:15):{defaulttz}}==true):=(offset):+900}}
{{if({in(+):{offset}}==false):=(offset):+0}}



{=(tz):{m:trunc({replace(+,):{replace(-,):{replace({timesep}30,):{replace({timesep}15,):{replace(:30,):{replace(:15,):{defaulttz}}}}}}}*3600)}}
{=(tzoffset):{if({in(m:trunc):{tz}}==true):{defaulttz}|{if({in(-):{if({date}=={strf:%Y-%m-%d}):{2}|{defaulttz}}}==true):+|-}{m:trunc({tz}{offset})}}}

{{if({LA(1)}==):=(date):{strf:%Y-%m-%d}}}
{{if({LA(1)}==):=(time):{strf:%X}}}

{=(output):**DYNAMIC TIMESTAMP**
`<t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:D>` Β» <t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:D>
`<t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:t>` Β» <t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:t>
`<t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:R>` Β» <t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:R>
`<t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:f>` Β» <t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:f>

`!timestamp help` for how-to use command}

{output}
Raw JSON
{
  "id": 1112391,
  "created_at": "2021-10-18T11:19:30.000Z",
  "tag_name": "timestamp",
  "nsfw": false,
  "owner_id": "560658014202363942",
  "uses": 152,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "816814079179358248",
  "sharer": "560658014202363942",
  "content": "{=(πŸ“Œ----πŸ’™----COMMENT----πŸ’™----πŸ“Œ):things that need to configured are marked with \"πŸ’™----COMMENT----πŸ’™\" other COMMENT's are informational only}\n\n{=(ud):{user(id)}}\n{=():}\n{=(LA):{lower:{args}}}\n\n{=(πŸ’™----COMMENT----πŸ’™):change the following variables to have the values that are true for your server}\n{=(prefix):>>}\n{=(tagname):timestamp}\n\n\n{=(πŸ’™----COMMENT----πŸ’™):Optional separators can be edited below if some people dont use the standard \"-\" and \":\"}\n{=(datesep):/}\n{=(timesep):.}\n\n\n{=(πŸ’™----COMMENT----πŸ’™):Daylight savings time -- if in effect change the S a D if not make sure it is a D. If it is not practiced at all, make sure it is set to S}\n{=(dst):D}\n\n{=(πŸ’™----COMMENT----πŸ’™):to add or remove members copy/delete the entire variable block and adjust the name and correct offset. then adjust the defaulttz block afterwards}\n{=(fish):+8}\n{=(hunty):{if({dst}==D):-7|-8}}\n{=(poo):{if({dst}==D):-5|-6}}\n{=(war):+5:30}\n{=(arya):{if({dst}==D):+2|+1}}\n{=(maba):+6:30}\n\n\n{=(largs):{replace(-,~):{replace( ,~):{replace(:,~):{replace( -, %):{replace(/,-):{replace(.,:):{args}}}}}}}}\n{=(tzgiven):{any({in(+):{largs}}==true|{in(%):{largs}}==true):true}}\n{=(tzindex):{replace(%, +):{replace(~, ):{largs}}}}\n{=(setoff):{if({list(7):{replace(%,-):{largs}}}==):true|false}}\n\n\n\n{=(πŸ’™----COMMENT----πŸ’™):easiest way to add onto the block is to start at the end, copy and paste everything between a set of \"| |\" and paste before the end before \"|+0\" (make sure you have a | before and after what you just pasted, incase you copied or didnt copy them, just makes sure there is only one) then add one more curl bracket to the very end like this one ==> }\n\n{=(defaulttz):{if({tzgiven}==true):{LA(3)}|{if({ud}==256063688497168384):{fish}|{if({ud}==727304173779157123):{hunty}|{if({ud}==560658014202363942):{poo}|{if({ud}==947346447483961365):{war}|{if({ud}==565593628110749714):{arya}|{if({ud}==756457458578227301):{maba}|+0}}}}}}}}\n\n{=(πŸ’™----COMMENT----πŸ’™):edit the names in the block below. This is a variable block with reply you get using !timestamp help}\n{=(helpcmd):**TIMESTAMP COMMAND USAGE**: \n```properties\nSYNTAX: !timestamp yy-mm-dd HH:MM:SS [tz]```\nNote: Timezone is optional. This tag is configured to adjust to the following member's timezone automatically:\n> `Fishie`, `Hunty`, `Pookie`, `Arya`, `Warrior`, `Mamba`\nOtherwise the default timezone is UTC+0.\n\n**Command usage examples :**\n`{prefix}{tagname}` Defaults to current date and time if nothing is provided.\n`{prefix}{tagname} 19-01-01 00:00 +8` Example using a timezone.\n`{prefix}{tagname} 22-10-10 12:00` Will return in timeszone of author or UTC+0\n\n*Also: There are additional time formats: `d`, `T`, `F` (Replace the letter at the end of the resulting stamp*)}\n\n\n{=(πŸ“Œ----COMMENT----πŸ“Œ):DO NOT EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU'RE DOING}\n\n{break({LA(1)}==help):{helpcmd}}\n\n\n{=(date):{any({in(-):{1}}==true|{in({datesep}):{1}}==true):{replace({datesep},-):20{1}}|{strf:%Y-%m-%d}}}\n\n{=(hours):{list(0):{replace(:,~):{replace({timesep},:):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}}}}\n{{if({list(1):{replace(:,~):{replace({timesep},:):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}}}==):=(minutes)::00|=(minutes)::{list(1):{replace(:,~):{replace({timesep},:):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}}}}}\n{{if({list(2):{replace(:,~):{replace({timesep},:):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}}}==):=(seconds)::00|=(seconds)::{list(2):{replace(:,~):{replace({timesep},:):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}}}}}\n\n{{any({in({timesep}):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}==true|{in(:):{if({date}=={strf:%Y-%m-%d}):{1}|{2}}}==true):=(time):{hours}{minutes}{seconds}|=(time):{strf:%X}}}\n\n{break({any({list(1):{replace(-,~):{date}}}>12|{list(1):{replace(-,~):{date}}}<1):true}==true):Invalid Month}\n{break({any({list(2):{replace(-,~):{date}}}>31|{list(1):{replace(-,~):{date}}}<1):true}==true):Invalid Day}\n{break({any({list(0):{replace(:,~):{time}}}>24|{list(0):{replace(-,~):{date}}}<0):true}==true):Invalid Hour}\n{break({any({list(1):{replace(:,~):{time}}}>60|{list(1):{replace(-,~):{date}}}<0):true}==true):Invalid Minute}\n{break({any({list(2):{replace(:,~):{time}}}>60|{list(2):{replace(-,~):{date}}}<0):true}==true):Invalid Second}\n\n\n{{any({in({timesep}30):{defaulttz}}==true|{in(:30):{defaulttz}}==true):=(offset):+1800}}\n{{any({in({timesep}15):{defaulttz}}==true|{in(:15):{defaulttz}}==true):=(offset):+900}}\n{{if({in(+):{offset}}==false):=(offset):+0}}\n\n\n\n{=(tz):{m:trunc({replace(+,):{replace(-,):{replace({timesep}30,):{replace({timesep}15,):{replace(:30,):{replace(:15,):{defaulttz}}}}}}}*3600)}}\n{=(tzoffset):{if({in(m:trunc):{tz}}==true):{defaulttz}|{if({in(-):{if({date}=={strf:%Y-%m-%d}):{2}|{defaulttz}}}==true):+|-}{m:trunc({tz}{offset})}}}\n\n{{if({LA(1)}==):=(date):{strf:%Y-%m-%d}}}\n{{if({LA(1)}==):=(time):{strf:%X}}}\n\n{=(output):**DYNAMIC TIMESTAMP**\n`<t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:D>` Β» <t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:D>\n`<t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:t>` Β» <t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:t>\n`<t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:R>` Β» <t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:R>\n`<t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:f>` Β» <t:{m:trunc({strf({date} {time}):%s}{tzoffset})}:f>\n\n`!timestamp help` for how-to use command}\n\n{output}\n",
  "embed": "{}",
  "last_fetched": "2026-10-20T17:50:41.965Z"
}