Hello, How can I convert date-time in which month and day have non zero padding? For example: "2015119_06" ("2015-01-19 06:00") Thanks Dominic [[alternative HTML version deleted]]
> For example: "2015119_06" ("2015-01-19 06:00")How would the ninth of November be represented? Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Aug 31, 2015 at 1:11 PM, Dominic Roye <dominic.roye at gmail.com> wrote:> Hello, > > How can I convert date-time in which month and day have non zero padding? > > For example: "2015119_06" ("2015-01-19 06:00") > > Thanks > > Dominic > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
you will probably have to take a guess since your example is also 2015-11-09 06:00; so how do you determine which one. come up with an algorithm and the solution is easy. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Mon, Aug 31, 2015 at 4:11 PM, Dominic Roye <dominic.roye at gmail.com> wrote:> Hello, > > How can I convert date-time in which month and day have non zero padding? > > For example: "2015119_06" ("2015-01-19 06:00") > > Thanks > > Dominic > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
In your example, how would you know that it is not 2015-11-9 06:00. ? Cheers, Bert On Monday, August 31, 2015, Dominic Roye <dominic.roye at gmail.com> wrote:> Hello, > > How can I convert date-time in which month and day have non zero padding? > > For example: "2015119_06" ("2015-01-19 06:00") > > Thanks > > Dominic > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org <javascript:;> mailing list -- To UNSUBSCRIBE and > more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll [[alternative HTML version deleted]]