Login script to state the current time and date of your login. Posted in chat every time you login or /reload.
I personally needed this when i was camping TLPD and wanted to know how long my character has been online or when did i login.
To adjust timeformat/textcoloring check the Whendidilogin.lua from addon folder:
-- Function to display the time and date in the chat (colorful and one-liner)
function Whendidilogin:PrintTimeAndDate()
local currentTime = date("%H:%M:%S / ") -- Current time in HH:MM:SS format (added space)
local currentDate = date("%d.%m.%Y") -- Current date in DD.MM.YYYY format, just swap between d and m if u prefer other display order.
-- Colorful one-liner output with character name and realm
local message = string.format("|cffffd700%s%s, here is your login timestamp:|r |cff00FF00 %s%s|r", playerName, playerRealm, currentTime, currentDate)
print(message)