Python datetime / time conversions « SaltyCrane Blog http://www.saltycrane.com/blog/2008/11/python-datetime-time-conversions/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat dm.test | |
25/12/2013,20:00:00,asdf,qwer,zxcv | |
$ sed -n -e "s_\(..\)/\(..\)/\(....\),_\3-\2-\1T_p" dm.test | |
2013-12-25T20:00:00,asdf,qwer,zxcv | |
$ date --universal --rfc-3339 ns|sed -ne "s_^\(....-..-..\)\ \(..:..:..\....\).*_\1T\2Z_p" | |
2013-11-15T19:39:42.146Z | |
$ alias date.toISOString='date --universal --rfc-3339 ns|sed -ne "s_^\(....-..-..\)\ \(..:..:..\....\).*_\1T\2Z_p"' | |
$ date.toISOString |
vm:
- Static IPs cannot end in ".1" since that address is always reserved for the router. Please use another ending.
network_ip_ends_in_one: vagrant/templates/locales/en.yml at 7ef6c5d9d7d4753a219d3ab35afae0d475430cae · mitchellh/vagrant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* documentLocationSearch2Dic | |
* -------------------------- | |
* | |
* Convert `document.location.search` string into key-values | |
* | |
* @param {String} documentLocationSearch document.location.search | |
* @return {Object} key-values of search strings | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argv, char *argc[]) | |
{ | |
if (argv!=2) | |
{ | |
printf("Usage: %s \"threadtime_format_logcat_file\"\n",__FILE__); | |
exit(-1); | |
} |
NewerOlder