- AuthorPosts
- June 25, 2015 at 2:37 am #20207StefanParticipant
Hi Yutaka,
Related to:
EmEditor Help – Command Reference – Edit category > Time and Date command
Edit > Insert > Time and Date
The formats used for the time and date can be configured in Windows… Regional …Options
.
I want to suggest to implement a option to adjust the format for “Insert Date/Time” independently from Windows settings.
1. I don’t want to modify my Windows settings.
2. Think portable. On each other PC I have different settings..
What do you think?
– – –
BTW:
This help entry seams to be no longer valid?
Default Menu: Edit> Advanced> Time and Date
In EmEditor I only see
Edit > Insert > Time and DateIsn’t it?
August 20, 2015 at 11:03 am #20321Yutaka EmuraKeymasterYou can use a JavaScript macro to insert date/time by any format. For example:
var date = new Date(); var hour = date.getHours(); var hh = hour; if( hour < 10 ) hh = "0" + hour; var min = date.getMinutes(); var mm = min; if( min < 10 ) mm = "0" + min; var sec = date.getSeconds(); var ss = sec; if( sec < 10 ) ss = "0" + sec; var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; var day = date.getDate(); var monthIndex = date.getMonth(); var year = date.getFullYear(); document.write( hh + ":" + mm + ":" + ss + ", " + day + " " + monthNames[monthIndex] + ", " + year);
I am trying to prioritize features that can’t be done by using macros higher than others, which allows EmEditor keep lightweight.
August 24, 2015 at 4:57 am #20326StefanParticipantHi Yutaka,
thank you very much for your reply.
As you may be aware already, I on my own know how to craft such scripts.
(https://www.emeditor.com/forums/topic/wish-date-day-date-month-date-year-date-hour-date-min/)
But that is not very user friendly and too complicated for average user.
(Also, if one would use a script, that menu item would become useless and only waste space)
And I can hardly imagine that the implementation of such (absolutely default) feature
would bloat EE that much and take that much space on executable and settings store?
But it’s your decision. I can only point you to need improvements from my POV.
(But inserting the default format like “13:53 24.08.2015” is useless for me, so I will always use a macro for that)
Anyway…
Thanks for making EmEditor !October 6, 2015 at 2:55 pm #20368Yutaka EmuraKeymasterHello Stefan,
You can now set date/time formats on v15.4.0 beta 2:
https://www.emeditor.com/forums/topic/emeditor-v15-4-0-beta-2/
Thanks!
October 7, 2015 at 4:25 am #20370StefanParticipantHi Yutaka.
WOW, thanks, but…
System default:
10:06 07.10.2015
User adjustment, leads to Time Date order:
10:07:13 2015-10-07
User wanted order (Date Time) is not possible:
2015-10-07 10:07:13
Try with “date” field only (yyyy-MM-dd HH:mm:ss)
is not working AND leads to a leading space:
2015-10-07 HH:mm:ss
How can I use Date first, Time second? > 2015-10-07 10:07:13
May I suggest to provide ONE single Date-Time field only please,
where the user can enter the whole string as he needs, like:
Date/Time Format———————
[_] Use System Format
[yyyy-MM-dd, dddd HH:mm:ss ]v]
————————————–
Thank you for making EmEditor.October 7, 2015 at 8:32 am #20371Yutaka EmuraKeymasterHello Stefan,
There are two commands: Date and Time, Time and Date. You can find both in the Quick Launch window (CTRL + Q).
Thanks!October 7, 2015 at 9:52 am #20372StefanParticipanto.O Uhh? Who had guessed that ;-D
So I am going now to “Tools > Customize Menus…” > Main Menu > [+]-&Edit
and modify my menu from “Time and Date” to “Date and Time”….. (and there is even a default shortcut: Shift+F5 to insert Date/Time)
Thanks :thumpsup: - AuthorPosts
- You must be logged in to reply to this topic.