#22 NppInsertPlugin extension

Next_major_release
closed
nobody
None
5
2014-08-17
2007-03-26
Jim Campbell
No

NppInsertPlugin.dll new feature:

date and time format strings
The date and time format strings follow the standard windows format strings
found at http://msdn2.microsoft.com/en-us/library/ms905235.aspx

The values are read from the insertExt.ini file. Below are the default values.
If these tags do not exist they will be acquired from the LOCALE_USER_DEFAULT.
These are the defaults on my computer.

longDateFormat=dddd, MMMM dd, yyyy
shortDateFormat=M/d/yyyy
shortTimeFormat=h:mm:ss tt
longTimeFormat=h:mm:ss tt

The dateTimeOrder key controls how the date and time are formatted relative to
each other.

// date and time with two spaces between them
0 -> <date> <time>

// time and date with two spaces between them
1 -> <time> <date>

// date and time with one space between them
2 -> <date> <time>

// time and date with one space between them
3 -> <time> <date>

Example Section
[Insert Extesion]
doCloseTag=0
longDateFormat=dddd, MMMM dd, yyyy
shortDateFormat=MM/dd/yyyy
shortTimeFormat=h:mm tt
longTimeFormat=h:mm tt
dateTimeOrder=0

Discussion

  • Jim Campbell
    Jim Campbell
    2007-03-26

    NppInsertPlugin - extends the date time format to allow user configuration.

     
    Attachments
  • Don HO
    Don HO
    2014-08-17

    • status: open --> closed
    • Group: --> Next_major_release