[#57574] [ruby-trunk - Feature #8976][Open] file-scope freeze_string directive — "akr (Akira Tanaka)" <akr@...>
70 messages
2013/10/02
[#57579] [ruby-trunk - Feature #8977][Open] String#frozen that takes advantage of the deduping — "sam.saffron (Sam Saffron)" <sam.saffron@...>
25 messages
2013/10/02
[#57633] [ruby-trunk - Bug #8983][Open] [PATCH] GC.stat[:heap_free_num] returns number of unused slots on heap — "tmm1 (Aman Gupta)" <[email protected]>
8 messages
2013/10/03
[#57667] [ruby-trunk - Feature #8985][Open] xwillfree - promise to free memory — "funny_falcon (Yura Sokolov)" <funny.falcon@...>
5 messages
2013/10/04
[#57679] [ruby-trunk - Feature #8987][Open] map/collect extension which handles arguments — "sowieso (So Wieso)" <sowieso@...>
16 messages
2013/10/05
[#57680] [ruby-trunk - Feature #8987] map/collect extension which handles arguments
— "sawa (Tsuyoshi Sawada)" <sawadatsuyoshi@...>
2013/10/05
[#57693] [PATCH 0/2] Fix strptime '%s' — Felipe Contreras <felipe.contreras@...>
Hi,
7 messages
2013/10/07
[#57694] [PATCH 1/2] time: fix strptime '%s'
— Felipe Contreras <felipe.contreras@...>
2013/10/07
'%s' is meant to imply UTC, however:
[#57703] Re: [PATCH 1/2] time: fix strptime '%s'
— Tanaka Akira <akr@...>
2013/10/07
2013/10/7 Felipe Contreras <[email protected]>:
[#57711] Re: [PATCH 1/2] time: fix strptime '%s'
— Felipe Contreras <felipe.contreras@...>
2013/10/07
On Mon, Oct 7, 2013 at 10:17 AM, Tanaka Akira <[email protected]> wrote:
[#57705] [ruby-trunk - Feature #8992][Open] Use String#freeze and compiler tricks to replace "str"f suffix — "headius (Charles Nutter)" <headius@...>
43 messages
2013/10/07
[#57840] [ruby-trunk - Feature #8992] Use String#freeze and compiler tricks to replace "str"f suffix
— "sam.saffron (Sam Saffron)" <sam.saffron@...>
2013/10/13
[#57727] [ruby-trunk - Feature #8998][Open] string keys for hash literals should use fstrings — "normalperson (Eric Wong)" <normalperson@...>
17 messages
2013/10/08
[#57743] [ruby-trunk - Feature #8998] string keys for hash literals should use fstrings
— "normalperson (Eric Wong)" <normalperson@...>
2013/10/08
[#57756] Re: [ruby-trunk - Feature #8998] string keys for hash literals should use fstrings
— Eric Wong <normalperson@...>
2013/10/09
I think my failed patch exposes a bug with lazy sweep + rb_fstring.
[#57771] [ruby-trunk - Bug #9008][Open] TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM — "vo.x (Vit Ondruch)" <v.ondruch@...>
15 messages
2013/10/09
[#57852] [ruby-trunk - Bug #9008] TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
— "kosaki (Motohiro KOSAKI)" <kosaki.motohiro@...>
2013/10/14
[#57884] [ruby-trunk - Bug #9008] TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
— "kosaki (Motohiro KOSAKI)" <kosaki.motohiro@...>
2013/10/15
[#57794] [ruby-trunk - Bug #9011][Open] rb_fstring unsafe to use in general case — "normalperson (Eric Wong)" <normalperson@...>
4 messages
2013/10/10
[#57812] [ruby-trunk - Bug #9013][Open] Crash on start — "lemonez (Dmitry Popov)" <lemon@...>
6 messages
2013/10/10
[#57813] ruby-2.0.0-p247siphash.c:443: bug report — David Binderman <dcb314@...>
Hello there=2C=0A=
4 messages
2013/10/10
[#57849] [ruby-trunk - Feature #9020][Open] Net::HTTPResponse predicate/query methods — "timcraft (Tim Craft)" <redmine@...>
7 messages
2013/10/14
[#57862] [CommonRuby - Feature #9023][Open] Array#tail — "fuadksd (Fuad Saud)" <fuadksd@...>
9 messages
2013/10/15
[#57912] [CommonRuby - Feature #9023] Array#tail
— "boris_stitnicky (Boris Stitnicky)" <boris@...>
2013/10/17
[#57888] [ruby-trunk - Feature #9025][Open] Clarify the error message when calling a method with the wrong number of arguments — Nerian (Gonzalo Rodríguez) <siotopo@...>
11 messages
2013/10/15
[#57913] cxxflags for C++ library bindings not working for Ruby 1.9.x and 2.0? — Stefan Salewski <mail@...>
Dear Sirs,
4 messages
2013/10/17
[#57916] Re: cxxflags for C++ library bindings not working for Ruby 1.9.x and 2.0?
— Nobuyoshi Nakada <nobu@...>
2013/10/17
(13/10/17 22:03), Stefan Salewski wrote:
[#57950] [ruby-trunk - Bug #9039][Open] [PATCH] socket: avoid unnecessary ppoll/select on Linux (part 3) — "normalperson (Eric Wong)" <normalperson@...>
8 messages
2013/10/21
[#57951] [ruby-trunk - Bug #9040][Open] Readline duplicate file descriptors but doesn't close them — "eweb (Eamonn Webster)" <eamonn.webster@...>
8 messages
2013/10/21
[#57986] [ruby-trunk - Bug #9040] Readline duplicate file descriptors but doesn't close them
— "akr (Akira Tanaka)" <akr@...>
2013/10/23
[#57967] [ruby-trunk - Feature #9043][Open] Add String#f method as shortcut for #freeze — "headius (Charles Nutter)" <headius@...>
8 messages
2013/10/22
[#58007] [ruby-trunk - Feature #9049][Open] Shorthands (a:b, *) for inclusive indexing — "mohawkjohn (John Woods)" <john.o.woods@...>
25 messages
2013/10/24
[#58011] [ruby-trunk - Feature #9049] Shorthands (a:b, *) for inclusive indexing
— "boris_stitnicky (Boris Stitnicky)" <boris@...>
2013/10/24
[#58012] Re: [ruby-trunk - Feature #9049] Shorthands (a:b, *) for inclusive indexing
— David MacMahon <davidm@...>
2013/10/24
[#58013] Re: [ruby-trunk - Feature #9049] Shorthands (a:b, *) for inclusive indexing
— Fuad Saud <fuadksd@...>
2013/10/24
How is a:b better than a..b=3F two dots are straightforward, unambiguous,=
[#58080] [ruby-trunk - Feature #9064][Open] Add support for packages, like in Java — "rosenfeld (Rodrigo Rosenfeld Rosas)" <rr.rosas@...>
23 messages
2013/10/30
[#58083] [ruby-trunk - Feature #9064] Add support for packages, like in Java
— "rosenfeld (Rodrigo Rosenfeld Rosas)" <rr.rosas@...>
2013/10/30
[#58114] [ruby-trunk - Feature #9068][Open] [PATCH (trivial)] thread.c: reduce rb_mutex_t size by 8 bytes on x86_64 — "normalperson (Eric Wong)" <normalperson@...>
5 messages
2013/10/31
[#58115] Re: [ruby-trunk - Feature #9068][Open] [PATCH (trivial)] thread.c: reduce rb_mutex_t size by 8 bytes on x86_64
— KOSAKI Motohiro <kosaki.motohiro@...>
2013/10/31
(10/31/13 3:42 PM), normalperson (Eric Wong) wrote:
[#58116] Re: [ruby-trunk - Feature #9068][Open] [PATCH (trivial)] thread.c: reduce rb_mutex_t size by 8 bytes on x86_64
— Eric Wong <normalperson@...>
2013/10/31
KOSAKI Motohiro <[email protected]> wrote:
[ruby-core:57503] [ruby-trunk - Bug #7445] strptime('%s %z') doesn't work
From:
"felipec (Felipe Contreras)" <felipe.contreras@...>
Date:
2013-10-01 00:00:52 UTC
List:
ruby-core #57503
Issue #7445 has been updated by felipec (Felipe Contreras).
tadf (tadayoshi funaba) wrote:
> I will give written in Japanese English because I heard not hold water .
I've used Google translate which does a poor job, but you have left me no choice.
> Do not forget that you 're talking about what you DateTime .
>
> That is written to the destination in the reference is not necessarily as it is Spoken . References
> It is not just a reference for a better understanding . Is natural . Is common sense .
Totally unparsable.
> quoted from (1) more
> > SEE ALSO
> > Vi (1), less (1)
>
> or equivalent to less? more I have exceptional .
>
> First of all , you should you have said already , but the machine perfectly 's% z%' as you say
> Nothing to be is! Performance . The syntax level you 're talking about is , read "
> It will only say "he . It has been described as possible with _strptime. Its
> For C, the members of the time zone is not a standard Somo also . Thailand from the original
> It is not symmetric about the time difference and time zones . What if , built-in classes of ruby
> Show How do you do in Time.
>
> quoted from (3) lcoaltime
> > Struct tm {
> > Int tm_sec; / * seconds * /
> > Int tm_min; / * minutes * /
> > Int tm_hour; / * hours * /
> > Int tm_mday; / * day of the month * /
> > Int tm_mon; / * month * /
> > Int tm_year; / * year * /
> > Int tm_wday; / * day of the week * /
> > Int tm_yday; / * day in the year * /
> > Int tm_isdst; / * daylight saving time * /
> > };
I don't know what you are talking about, but we are not talking about Time, nor lcoaltime, which I pressume is actually localtime().
Time doesn't even have strptime(), so what's the point of bringing it up? I have no idea.
> Well as DateTime, Time of built-in class , library of C also is the same
> But, in order to properly accept , as well as the syntax level and have to interpret the meaning
> Must . Those that do not rely on the first elements and conflicting be ignored
> Will be . You're of sesame and pretend you do not notice it at all .
>
> % s is intended to time_t , but there is no such a member to struct tm
> In fact , it should be stored in some cases local self-evident is decomposed so . Even if time difference
> I do not go , multiply Dzuna mind it's a little funny thing is , even if it is stored.
> The difference would be good if they match that of the local time , but it is not necessarily so
> Do . It would be implemented as soon as the first place and whether it is stored . mktime (3) is free it
> Coherence will fit if you view. Behavior of this area think that it is undefined in any
> There are . Is not the significance of ours to discuss .
>
> # define _XOPEN_SOURCE
> # include <stdio.h>
> # include <time.h>
>
> int main (int argc, char * argv []) {
> struct tm tm;
> char buf [100];
> strptime (argv [1], argv [2], & tm);
> strftime (buf, 100, "% F% T% z", & tm);
> printf ("% s \ n", buf);
> return 0;
> }
>
> $. / A.out '3 +0100' '% s% z'
> 1970-01-01 09:00:03 +0100
> $. / A.out '3 -0100 ''% s% z '
> 1970-01-01 09:00:03 -0100
>
> In this case, the difference was to be read indeed .
>
> $ Date-d '1970-01-01 09:00:03 +0100' +% s
> 28803
> $ Date-d '1970-01-01 09:00:03 -0100 '+% s
> 36003
>
> But , just I 'm just reading . Or something if symmetry 'm not a story .
>
> Instance of Time and DateTime is an object, what mktime (3 ) basis
> You can not eliminate . I should have to as it is fraught elements inconsistent or DateTime
> It is not impossible in Time. Object is not a struct tm. You
> C still does not work , in fact that you are saying , and so any DateTime
> There is not even going to prepare Na . The fact that you said is nonsense at all .
Again, Time is irrelevant, we are talking about DateTime, so mktime() or whatever backend is used is irrelevant, the documentation mentions strptime(3), and strptime(3) accepsts '%s %z', therefore DateTime.strptime() should accept it too, and it can if the attached patch is applied.
> > Time.strptime ('1 +1200', '% s% z')
> # = > 1970-01-01 09:00:01 +0900
> > Time.strptime ('1 +2400', '% s% z')
> # = > 1970-01-01 09:00:01 +0900
Again, there is no strptime in Time.
Time.strptime('1 +1200', '%s %z')
NoMethodError: undefined method `strptime' for Time:Class
from (irb):1
from /usr/bin/irb:12:in `<main>'
> In fact , there are other combinations do not make sense . On the other hand , one by one
> I do not think it is trying to provide a correct interpretation . And be modified as you say in this matter
> Lever , so although I have not yet obtained the perfect symmetry .
>
> > Time.strptime ('1 0 ','% s% w '). Wday
> # = > 4
>
> > Time.strptime ('1 PM ','% s% p '). Hour
> # = > 9
>
> > DateTime.new (2001,2,3,16,5,6). Strftime ('% F% T% p')
> # => "2001-02-03 16:05:06 PM"
> > DateTime.strptime ('% F% T% p', "2001-02-03 16:05:06 PM")
> ArgumentError: invalid date
That's because you are passing the arguments the other way around:
DateTime.strptime("2001-02-03 16:05:06 PM", '%F %T %p')
=> #<DateTime: 2001-02-03T16:05:06+00:00 ((2451944j,57906s,0n),+0s,2299161j)>
Geezus.
> I have never seen that the date formatなんて's% z%' to me. Time difference and time zone
> What is needed , it will be because it is local time in nature. % s 's shown ,
> In time_t, there is no information of the time difference and time zone to time_t. Its on Unix
> As given , self-explanatory , as there is no need to explain , just fire Re
> Only some convex , this is the basic .
Again, time_t is totally and completely irrelevant. strptime(3) and strftime(3) do NOT use it.
> For example, let's look at the ISO 8601. There a difference in local time , but the Universal time
> Would not . I do not know why actively accept this . Bug at least
> Not a . I do not know reason to say as a matter of course , you'd been accepted .
>
> I have thought and time zone difference as something like modifier but , '% s% z'
> In There is nothing of interest. something 's% p%' is the same . Such things
> I do not think you must give a meaning to .
It doesn't matter what you think. strptime(3) does give a meaning to '%s %z'. Period.
> I think it strange that as a date you 's% z%' is attempting to represent . Its
> If interpret force the level , it is not a date , an incomplete copy of the date object
> I think that it is not only a kind of copy .
It is not incomplete, every date can be represented with '%s %z'.
That's why Git, the most successful DVCS by far, which is headed to
replace Subversion as the most popular VCS in general uses precisely
this:
---
% git cat-file -p trunk
tree 075a08c3e84f214ab9426957b3682b94c56b3046
parent bbf366bad8b51c491820b67338125d36b88c8fbe
author zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> 1380550541 +0000
committer zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> 1380550541 +0000
* ext/objspace/objspace.c: [DOC] Cleaned up many rdoc formatting
issues and several duplicate grammar bugs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
---
Oh, look at that '1380550541 +0000', so '%s %z', that's all Git uses to
represent dates, and it's not missing any information. Probably hundreds
of thousands, maybe even millions of people don't have a problem with
these dates.
Oh, and since I've worked on Mercurial and Bazaar, I can tell you that
these two fields is all they need as well.
> From it , because it may contain a leap second time_t, portability is poor . So ,
> This is even able to read and write in various places , is recommended the use of less active
> The fact that it will not also like I want to say . the built-in classes of ruby
> I do not feel the significance that I'll overdo it that you do not Spoken and even for . A new feature
> If " Use steadily . Bug was a bug because I grew out of it by this " Madashimo
> I do not want to say absolutely is .
>
> Or future , it might be The possible as undefined behaviors . However , now
> I do not think at all of place , if you want to accept . It must be accepted right now to reverse
> Will there why not . Never complains about anyone until now , Oh
> Other than thou is .
>
> You can see if you look at the code , but ignore consciously . Has been doing intended .
> Thought does not Hen~tsu also now, I feel to be persuaded you will not . Consent this
> Consult your great men of the other if you can not .
I don't understand what you mean, but it is a bug. The documentation says this.
"See also strptime(3) and strftime."
1) strptime(3) does work correctly with '%s %z'
2) strftime()
> "This is not a bug " is the conclusion of me.
Well you are wrong, and your are completely unreasonable and uncooperative attitude is not helping, so I'm going to escalate to other channels.
----------------------------------------
Bug #7445: strptime('%s %z') doesn't work
https://bugs.ruby-lang.org/issues/7445#change-42118
Author: felipec (Felipe Contreras)
Status: Rejected
Priority: Low
Assignee: tadf (tadayoshi funaba)
Category: lib
Target version: Next Major
ruby -v: ruby 1.9.3p327
Backport:
See:
ruby -e "require 'date'; p DateTime.strptime('0 +0100', '%s %z').strftime('%s %z')"
The timezone is ignored.
--
http://bugs.ruby-lang.org/