Questions tagged [date-and-time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
5answers
396 views

How do I get my signature with a date inserted in my changelog?

Whenever I make an update to the changelog of a Debian package, I have to update the signature with the correct date (well, it's not mandatory, but it's really nice to have). The signature looks like ...
3
votes
2answers
343 views

How can I run a function / action every period of time (once an hour)?

I want to run https://stackoverflow.com/questions/7588531/vim-set-color-theme-based-off-time-of-day So something like: if strftime("%H") < 12 set background=light else set background=dark ...
2
votes
2answers
58 views

How to save file with today's date?

I am trying to save a file with today's date as part of name. To save file, we can just do :w myFile. To get today's date, we can use strftime. Ex: :echo strftime("%F") " returns 2020-03-27. Now I ...
4
votes
3answers
554 views

How can I calculate the duration of a function call?

I have this function which insert 2 dates in a file: function MaFunction() put =strftime(\"%c\") exe 'w' exe 'call Function1()' put = strftime(\"%c\") endfunction Example: 24/03/...