6.1.3 Nicotine+ Extra's: Add On, nMyLCTime


nMyLCTime stands for Nicotine+ My Local Current Time
It is one simple command that allows you to display location/time easy in Nicotine+.
nMyLCTime works on al Linux distro's without any depencies.




Time

NoName's local time is: 07:42:59

  • 1. Start Nicotine+
  • 2. insert 1 of the following command in chat input-field
    /al time /me 's local time is |(date '+%X' | sed -r 's/^(.+)/\1\ /')
    /al time /me 's local time is |(date | awk '{ print $4 }')
  • 3. Test the script by starting nMyLCTime with following command in chat input-field.
    /time

Date

NoName checks calender: Today is Wed. Aug 30, 2006

  • 1. Start Nicotine+
  • 2.
    /al date /me checks calender: |(date | awk '{ print "Today is " $1 ". " $2 " " $3 ", " $6 }')
  • 3. Test the script by starting nMyLCTime with following command in chat input-field.
    /date

Time & Date

NoName's local time/date: Wednesday, August 30, 07:09:14

  • 1. Start Nicotine+
  • 2. insert the following command in chat input-field, replacing COUNTRY with your own :)
    /al time /me 's local time/date: |(date '+%A, %B %d, %X' | sed -r 's/^(.+)/\1\ /')
  • 3. Test the script by starting nMyLCTime with following command in chat input-field.
    /time

Thanks to:

lee8oi ( lee8oi [at] yahoo [dot] com)
provided Date and alternative command for Time





Nicotine Guide > Table of Contents