Code: Select all
set timezone "timezone"
Code: Select all
regsub {\.000Z} $pubiso "" pubiso
regsub -all {Z} $pubiso "" pubiso
Code: Select all
set pubtime [clock format [clock scan $pubiso]]
Code: Select all
set pubtime [clock format [clock scan [string map [list "T" " " "Z" ""] $pubiso]]]
Code: Select all
[14:53:42] m00nie::youtube::getinfo IDS are {snippet {publishedAt 2015-08-10T22:24:25.000Z title {IFC's VICE Parody: 'DRONEZ' (Full Episode)} channelTitle VICE} contentDetails {duration PT22M52S} statistics {viewCount 36205}}
Code: Select all
regsub {\.000Z} $pubiso "" pubiso
regsub -all {Z} $pubiso "" pubiso
Code: Select all
% set pubiso "2015-08-10T22:24:25.000Z"
2015-08-10T22:24:25.000Z
% regsub {\.000Z} $pubiso "" pubiso
1
% regsub -all {Z} $pubiso "" pubiso
0
% puts $pubiso
2015-08-10T22:24:25
% clock format [clock scan $pubiso]
Tue Aug 11 08:24:25 EEST 2015
Code: Select all
set pubiso [string map {"T" " " ".000Z" ""} $pubiso]
Code: Select all
set pubtime [clock format [clock scan $pubiso]]
Code: Select all
% set pubiso "2015-08-10T22:24:25.000Z"
2015-08-10T22:24:25.000Z
% set pubiso [string map {"T" " " ".000Z" ""} $pubiso]
2015-08-10 22:24:25
Code: Select all
% clock format [clock scan $pubiso]
Mon Aug 10 22:24:25 EEST 2015
Line 36: ERROR: Unknown variable "m00nie::youtube::regex"
Line 40: ERROR: Unknown variable "m00nie::youtube::key"
Line 79: ERROR: Unknown variable "m00nie::youtube::user_throt"
Line 80: ERROR: Unknown variable "m00nie::youtube::chan_throt"
Line 81: ERROR: Unknown variable "m00nie::youtube::link_throt"
Line 89: NOTICE: Found constant "rawpage" which is also a variable.
Line 93: WARNING: Unknown command "json::json2dict"
Line 105: ERROR: Unknown variable "m00nie::youtube::key"
Code: Select all
GJ8Þó ,40q Á‹_n -Mè-��#GJ8Þó #á
Code: Select all
GJ8マン 第40話 『私、見たの! -前編-』 #GJ8マン #郡上八幡 #さくらももこ
debian:bullsey
eggdrop 1.8.4
tcl 8.6.9
tcl-tls 1.7.21
tclcurl 7.22.0+hg20160822-2
tcllib 1.20
Yes. You're rightm00nie wrote:Hi bugme
default encoding is on your OS.
m00nie
Code: Select all
locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=