Author Topic: Timestamp value for days or dates?  (Read 13224 times)

Knight

  • Guest
Timestamp value for days or dates?
« on: August 11, 2009, 10:39:25 AM »
Hey everyone,

I have another small ichoo to solve.  I wanted to add a date time timestamp to my channels/chats.  I found enough on..

http://www.icechat.net/site/index.php?irc-client=options

..to add seconds but tried [dd:hh:nn] for days as is mentioned you can do in that link but it showed a number.  If the timestamp value for days can be imparted to me that would be great.  Also is there one for date?  So that the time stamp might look like..

[08/11/09 12:23]

..thanks again for any and all infos.

- Knight

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1971
    • IceChat IRC Client
Re: Timestamp value for days or dates?
« Reply #1 on: August 11, 2009, 11:19:10 AM »
Here all the values you can use for time stamps.


d - Display the day as a number without a leading zero (1 - 31).

dd - Display the day as a number with a leading zero (01 - 31).

ddd - Display the day as an abbreviation (Sun - Sat).

dddd - Display the day as a full name (Sunday - Saturday).

ddddd - Display the date as a complete date (including day, month, and year), formatted according to your system's short date format setting. The default short date format is m/d/yy.

dddddd  - Display a date serial number as a complete date (including day, month, and year) formatted according to the long date setting recognized by your system. The default long date format is mmmm dd, yyyy.

w - Display the day of the week as a number (1 for Sunday through 7 for Saturday).

ww - Display the week of the year as a number (1 - 53).

m - Display the month as a number without a leading zero (1 - 12). If m immediately follows h or hh, the minute rather than the month is displayed.

mm - Display the month as a number with a leading zero (01 - 12). If m immediately follows h or hh, the minute rather than the month is displayed.

mmm - Display the month as an abbreviation (Jan - Dec).

mmmm - Display the month as a full month name (January - December).

q - Display the quarter of the year as a number (1 - 4).

y - Display the day of the year as a number (1 - 366).

yy - Display the year as a 2-digit number (00 - 99).

yyyy - Display the year as a 4-digit number (100 - 9999).

h - Display the hour as a number without leading zeros (0 - 23).

hh - Display the hour as a number with leading zeros (00 - 23).

n - Display the minute as a number without leading zeros (0 - 59).

nn - Display the minute as a number with leading zeros (00 - 59).

s - Display the second as a number without leading zeros (0 - 59).

ss - Display the second as a number with leading zeros (00 - 59).

t t t t t - Display a time as a complete time (including hour, minute, and second), formatted using the time separator defined by the time format recognized by your system. A leading zero is displayed if the leading zero option is selected and the time is before 10:00 A.M. or P.M. The default time format is h:mm:ss.

AM/PM - Use the 12-hour clock and display an uppercase AM with any hour before noon; display an uppercase PM with any hour between noon and 11:59 P.M.

am/pm - Use the 12-hour clock and display a lowercase AM with any hour before noon; display a lowercase PM with any hour between noon and 11:59 P.M.

A/P - Use the 12-hour clock and display an uppercase A with any hour before noon; display an uppercase P with any hour between noon and 11:59 P.M.

a/p - Use the 12-hour clock and display a lowercase A with any hour before noon; display a lowercase P with any hour between noon and 11:59 P.M.

AMPM - Use the 12-hour clock and display the AM string literal as defined by your system with any hour before noon; display the PM string literal as defined by your system with any hour between noon and 11:59 P.M. AMPM can be either uppercase or lowercase, but the case of the string displayed matches the string as defined by your system settings. The default format is AM/PM.

The IceChat God

Knight

  • Guest
Re: Timestamp value for days or dates?
« Reply #2 on: August 11, 2009, 03:24:15 PM »
Holy crapolotastic super ZOMGWTFBBQ!!!!!!!   That's AWESOME sir snerf.  You DO NOT disappoint!

Thank you.  ;)


- Knight
---
"Never Lose Touch!"
Co-Founder of the TechCafe.Net Community
www.techcafe.net | irc://irc.techcafe.net, /join #TechCafe