<div dir="ltr"><p dir="ltr">ironically i based the time off of similar aliases i made using irssi's exec command and some simple one line shell commands. in fact, i made them to convert from utc to local and vice versa as well as for any other time zone:</p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="monospace, monospace">2local     exec - date -d 'TZ="UTC" $0-'<br></font><font face="monospace, monospace">2localbytz exec - date -d "$0-"<br></font><font face="monospace, monospace">2utc       exec - TZ=UTC date -d "$0- `date +%Z`"<br></font><span style="font-family:monospace,monospace">2utcbytz   exec - TZ=UTC date -d "$0-"</span></blockquote><p dir="ltr">I don't use any specific format because date's [string format][1] is really flexible. of course, your script guarantees success, but date strings pretty much do, too (especially check out the relative items) :)</p><p dir="ltr">usage is simply /script <date string>. just make sure for the ones that end in bytz to add a descriptor for the time zone, e.g. UTC-7 or PST, though i don't recommend the latter as it's potentially ambiguous. one thing it won't accept is zoneinfo format (e.g. America/Los_Angeles). that being said, you'll have to be sensitive to your own daylight savings time/summer time.</p><p>with that, the non-bytz ones are somewhat extraneous but it keeps me from having to type anything extra or figure out DST, since it leverages date to get the current local time zone. </p>
<p dir="ltr">so you can see, i had a very refined system for dealing with the issue of date and time conversions. the problem was, i tried to figure out what time I'd show up at work rather than what time I'd be available. lesson learned: no one is safe from the malicious hand of PEBKAC.</p><p>[1]: <a href="http://www.delorie.com/gnu/docs/sh-utils/sh-utils_3.html">http://www.delorie.com/gnu/docs/sh-utils/sh-utils_3.html</a></p>
<p dir="ltr">@wxl | <a href="http://polka.bike" target="_blank">http://polka.bike</a><br>
Lubuntu Release Manager & Head of QA<br>
Ubuntu PPC Point of Contact<br>
Ubuntu Oregon Team Leader<br>
Ubuntu Membership Board & LoCo Council Member<br>
Eugene Unix & GNU/Linux User Group Co-organizer</p>
<div class="gmail_quote">On Nov 13, 2015 4:08 AM, "Nio Wiklund" <<a href="https://mail.google.com/mail/u/0/?view=cm&fs=1&tf=1&to=nio.wiklund@gmail.com" target="_blank" title="[GMCP] Compose a new mail to nio.wiklund@gmail.com" rel="noreferrer">nio.wiklund@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Den 2015-11-12 kl. 00:36, skrev Walter Lapchynski:<br>
> Well, I screwed up and got the time for today's wrong. I showed up an<br>
> hour late to our meeting. I did manage to get all the logs and have them<br>
> on the [page][1] we have dedicated to holding meeting notes. Make sure<br>
> to check that out for a wee bit of update and a LOT of information about<br>
> mkusb and the possibility of getting it included as a standard thing in<br>
> Lubuntu.<br>
><br>
> We also discussed about a wee change to the meeting time. We are now<br>
> once a month, 2nd Wednesday, at 19:00 UTC. We've also included a little<br>
> tool to figure out the time in your area on the [agenda][2] page which<br>
> is updated for the next meeting already. Feel free to add any agenda<br>
> items you have in mind. Otherwise, just come and hang out.<br>
><br>
> Also note that future meetings will be on #lubuntu-devel. This way we<br>
> have Meetingology to take care of logging and notes and stuff.<br>
><br>
> If there's any other questions, comments, or concerns on the topics<br>
> brought up at today's meeting, please don't hesitate to drop a line!<br>
><br>
> [1]: <a href="https://wiki.ubuntu.com/Lubuntu/IRC%20Meetings" rel="noreferrer" target="_blank">https://wiki.ubuntu.com/Lubuntu/IRC%20Meetings</a><br>
> [2]: <a href="https://wiki.ubuntu.com/Lubuntu/IRC%20Meetings/Agenda" rel="noreferrer" target="_blank">https://wiki.ubuntu.com/Lubuntu/IRC%20Meetings/Agenda</a><br>
><br>
> --<br>
> @wxl | <a href="http://polka.bike" rel="noreferrer" target="_blank">http://polka.bike</a><br>
> Lubuntu Release Manager & Head of QA<br>
> Ubuntu PPC Point of Contact<br>
> Ubuntu Oregon LoCo Team Leader<br>
> Ubuntu Membership Board & LoCo Council Member<br>
> Eugene Unix & GNU/Linux User Group Co-Organizer<br>
<br>
Hi everybody,<br>
<br>
Here is a simple shell-script, that can help converting between UTC and<br>
local time, provided you have the correct local time in your computer.<br>
(Make it executable and put it in PATH. I put it in ~/bin)<br>
<br>
-----<br>
sudodus@ssd-grund ~ $ utc2local<br>
Usage:    /home/sudodus/bin/utc2local [utc-time]<br>
          /home/sudodus/bin/utc2local 'YEAR-mm-dd HH:MM-utc'<br>
Example:  /home/sudodus/bin/utc2local '2015-11-22 18:30-utc'<br>
----------------------------------------------------------------<br>
Current UTC time = 2015-11-13 11:54<br>
<br>
##### For the next meeting (the example is for my CET) #####<br>
<br>
sudodus@ssd-grund ~ $ utc2local '2015-12-09 19:00-utc'<br>
Usage:    /home/sudodus/bin/utc2local [utc-time]<br>
          /home/sudodus/bin/utc2local 'YEAR-mm-dd HH:MM-utc'<br>
Example:  /home/sudodus/bin/utc2local '2015-11-22 18:30-utc'<br>
----------------------------------------------------------------<br>
  UTC time = 2015-12-09 19:00-utc<br>
Local time = 2015-12-09 20:00<br>
----------------------------------------------------------------<br>
Locale: Wed Dec  9 20:00:00 CET 2015<br>
sudodus@ssd-grund ~ $<br>
-----<br>
<br>
Best regards<br>
Nio<br>
<br>
</blockquote></div>
</div>