Saturday, February 20, 2010

Re: strftime vs date

On Fri, Feb 19, 2010 at 1:04 AM, John Little <john.b.little@gmail.com> wrote:
>
> On Feb 19, 5:01 pm, jbw <jbwalt...@gmail.com> wrote:
>> Is there a way have the strftime ...
>
> Vim just hands on to the system's strftime, so you get whatever your
> unix supports.  However, strftime formats a time you give it, string
> from time, not time from string (that would be getdate or strptime),
> and I don't think Vim does that.
>
> Why not use system? F.ex.
>
>    :echo system("date -d 'last sunday'")
>

Unfortunately I'm using gvim via cygwin on Windows Vista and I get the
following fork error whenever I try to execute a system command
13 [main] gvim 7268 C:\cygwin\bin\gvim.exe: *** fatal error - unable
to remap \\?\C:\cygwin\lib\gtk-2.0\2.10.0\loaders\cygpixbufloader-xpm.dll
to same address as parent: 0x350000 != 0x3C0000
10 [main] gvim 2640 fork: child 7268 - died waiting for dll
loading, errno 11

So I was just trying to find another way to achieve the same results

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: