(tool) Source Insight High Speed Add time code

Source: Internet
Author: User
Tags add time

This article is a program code change by another user. Not original, such as the following summary, use as a personal note.

(1) Open projectbase. Open the file Utils.em and insert the following code:

Insert Time Macro Monthtoname (Monthnum) {if (monthnum== 1) return "" if (monthnum== 2) return "" "if (Monthnu m== 3) return "to" if (monthnum== 4) return "" "if (monthnum== 5) return" if "(monthnum= = 6) return "if (monthnum== 7) return" "if (monthnum== 8) return" if "(monthnum== 9) return "monthnum==" if (monthnum==) return "one" if (monthnum==  Return "" "} macro Displaydate () {sztime = Getsystime (1) Day = Sztime.day Month = sztime.month Year = Sztime.year Hour = Sztime.hour Minute = Sztime.minute Second = Sztime.second if (Day < ten) Szday = "[email protected]@" Else Szday = Day Szmonth = Monthtoname (Month) hbuf = Getcurrentbuf () SETBU Fseltext (Hbuf, "/* @[email protected]/@[email protected]/@[email protected]@[email protected ]:@[email protected]:@[email protected] */")} 

(2) Assigning shortcut keys:

options->menu Assignments Open the Menu Assignments form, enter macro in command, select the macro (displaydate) you want to use, Add to the appropriate menu. You can also define your own shortcut keys, you can, I define the ctrl+alt+f11.

(Option--key assignment)

You can produce the following effects:

/*  2014/09/28--11:41:15  */







Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.

(tool) Source Insight High Speed Add time code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.