search for: mday

Displaying 20 results from an estimated 139 matches for "mday".

Did you mean: may
2008 Sep 17
4
cron job not working
...than that, an email isn't sent to the account running the job. So I'm not getting an error, but it does work when I run it manually. If I put an obvious error in the script, cron does generate an email giving me the STDERR. What could it be? === Al #!/usr/bin/perl ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); # Above functions, "time" and "localtime", return weird $year and $month # Need to be converted to become human readable $year = $year + 1900; $mon = $mon + 1; # Want $mday and $mon to be 2 digits, with leading zero if necessa...
2010 Oct 01
3
Converting a dataframe column from string to datetime
...t looks like this... [[1]] [1] "2010-02-05 20:00:01.43" [[2]] [1] "2010-02-05 20:00:02.274" [[3]] [1] "2010-02-05 20:00:02.274" [[4]] [1] "2010-02-05 20:00:06.34" However, when I do an unlist...I gets converted to something like this... sec min hour mday mon year wday yday isdst sec min hour mday mon year wday yday isdst sec 1.430 0.000 20.000 5.000 1.000 110.000 5.000 35.000 0.000 2.274 0.000 20.000 5.000 1.000 110.000 5.000 35.000 0.000 2.274 min hour mday mon year...
2004 Oct 05
0
new option implemented: --delete-mdays
...folks, we would like your feedback on a new option we have implemented. We would like to know whether it should be merged into the CVS tree. Perhaps one of the rsync developers can have a look at the code, improve it where necessary, and committ it to CVS. The name of the option is "--delete-mdays=DAYS" and it works in conjunction with the option "--delete." It modifies the behaviour of "--delete" so that files not present on the sender are only deleted on the receiver if they are at least "DAYS" days old (modification time). This is useful e.g. when mails...
2012 Feb 24
6
strange behaviour of "POSIXlt" "POSIXt" object
Hi, Does anybody know why get I this kind of strange situation: Browse[2]> hcEnd [1] "2009-03-29 06:30:00" Browse[2]> class(hcEnd) [1] "POSIXlt" "POSIXt" Browse[2]> is.na(hcEnd) [1] TRUE This issue is the source of my all issues in my program, Thanks for your help -- View this message in context:
2011 May 14
2
changing the day of the week in dates format
...uot;24 hours") I want to change the dates of all the days falling on a Saturday to the next working day (i.e. Monday). So I convert dates to POSIXlt mydaysx <- as.POSIXlt(daysx) Then I change select all the Saturday's and move them on to Monday select <- mydaysx$wday==6 mydaysx$mday[select] <- mydaysx$mday[select] + 2 However, although all the new dates (i.e. mydaysx) are actual days of the year - the $wday have not been updated and the $mdays have not all been corrected (i.e. those falling into the next month). So if I do select <- mydaysx$wday==6 I still get the...
2020 Oct 23
2
The presence/absence of `zone` in POSIXlt depending on time zone as a cause of possible inconsistences?
...ne` element, while if one unlists a POSIXlt time with a non GMT zone (also non specifying tz if the Sys.timezone is not GMT) gets a character vector due to including the `zone` element. > x <- as.POSIXlt(Sys.time(), "GMT") > (y <- unlist(x)) sec min hour mday mon year wday yday isdst 54.99715 26.00000 16.00000 23.00000 9.00000 120.00000 5.00000 296.00000 0.00000 > str(y) Named num [1:9] 55 26 16 23 9 ... - attr(*, "names")= chr [1:9] "sec" "min" "hour" "mday" ......
2007 Jan 17
2
problem with unlist POSIX date at midnight
...ut as.character(acc.period[16]) is not the solution.... begin=paste(dates[i]-1,"09:00:00") end=paste(dates[i],"08:00:00") acc.period=seq(as.POSIXct(begin),as.POSIXct(end),"hour") unlist(strptime(acc.period[16],format="%Y-%m-%d %H:%M:%S")) # sec min hour mday mon year wday yday isdst # NA NA NA NA NA NA NA NA -1 unlist(strptime(acc.period[17],format="%Y-%m-%d %H:%M:%S")) # sec min hour mday mon year wday yday isdst # 0 0 1 1 2 106 3 59 0 a="2006-03-01 00:00:00&quot...
2005 Oct 06
2
isdst
Can someone, please, explain the difference is results below (notice the isdst value) > unlist(as.POSIXlt('2005-7-1')) sec min hour mday mon year wday yday isdst 0 0 0 1 6 105 5 181 1 > unlist(as.POSIXlt(as.Date('2005-7-1'))) sec min hour mday mon year wday yday isdst 0 0 0 1 6 105 5 181 0
2005 Mar 23
0
agi script for german date / time
...NIP------------------------ #!/usr/bin/perl use strict; use Time::HiRes qw/sleep/; my %params; $|=1; while(1) { my $line = <stdin>; chomp($line); last if $line eq ''; (my $key, my $value) = split(/\: /,$line); $params{$key}=$value; } (undef,my $min,my $hour,my $mday,my $mon,my $year,my $wday,undef,undef) = localtime(time); sendcmd('ANSWER'); sleep(1); sendcmd('STREAM FILE digits/de/day-'.$wday.' 0'); sleep(0.3); if($mday > 19) { my $decade = substr($mday,0,1).'0'; sendcmd('STREAM FILE digits/de/'.($mday-$de...
2007 Dec 11
3
Wrong length of POSIXt vectors (PR#10507)
...l times I have experienced that a length of a POSIXt vector has not been computed right. Example: tv<-structure(list(sec = c(50, 0, 55, 12, 2, 0, 37, NA, 17, 3, 31 ), min = c(1L, 10L, 11L, 15L, 16L, 18L, 18L, NA, 20L, 22L, 22L ), hour = c(12L, 12L, 12L, 12L, 12L, 12L, 12L, NA, 12L, 12L, 12L), mday = c(13L, 13L, 13L, 13L, 13L, 13L, 13L, NA, 13L, 13L, 13L), mon = c(5L, 5L, 5L, 5L, 5L, 5L, 5L, NA, 5L, 5L, 5L), year = c(105L, 105L, 105L, 105L, 105L, 105L, 105L, NA, 105L, 105L, 105L), wday = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, NA, 1L, 1L, 1L), yday = c(163L, 163L, 163L, 163L, 163L, 163L, 163L, NA,...
2010 Dec 27
1
Can't merge on datetime?
...structure(list(date = structure(list(sec = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), min = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), hour = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), mday = c(1L, 2L, 3L, 4L, 5L, 8L, 9L, 10L, 11L, 12L, 15L, 16L, 17L, 18L, 19L, 22L, 23L, 24L, 25L, 26L, 29L), mon = c(10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L), year = c(110L, 110L, 110L, 110L, 110L, 110L, 110L, 110L, 110L, 110L, 110L, 11...
2003 Aug 13
1
Problems with addition in big POSIX dates
Have you noticed any problems with big dates (>=1/1/2040) in R? Here is the bit of code that I'm having trouble with: > test.date <- strptime("1/1/2040",format="%m/%d/%Y") > > unlist(test.date) sec min hour mday mon year wday yday isdst 0 0 0 1 0 140 0 0 0 > > date.plus.one <- as.POSIXct(test.date) + 24*60*60 > date.plus.one.lt <- as.POSIXlt(date.plus.one) > > unlist(date.plus.one.lt) sec min hour mday mon year wday yday isdst...
2020 Oct 23
0
The presence/absence of `zone` in POSIXlt depending on time zone as a cause of possible inconsistences?
...uot;)`. But the next example does not behave as I would expect: > Sys.setenv(TZ = "EDT") > x <- as.POSIXlt(Sys.time(), "CET") > x[1,"zone"] [1] "CEST" > attributes(x) $names [1] "sec" "min" "hour" "mday" "mon" "year" "wday" "yday" "isdst" "zone" "gmtoff" $class [1] "POSIXlt" "POSIXt" $tzone [1] "CET" "CET" "CEST" So `x[1,"zone"]` is what I expect,...
2009 Feb 27
0
POSIXlt, POSIXct, strptime, GMT and 1969-12-31 23:59:59
R-devel: Some very inconsistent behavior, that I can't seem to find documented. Sys.setenv(TZ="GMT") str(unclass(strptime("1969-12-31 23:59:59","%Y-%m-%d %H:%M:%S"))) List of 9 $ sec : num 59 $ min : int 59 $ hour : int 23 $ mday : int 31 $ mon : int 11 $ year : int 69 $ wday : int 3 $ yday : int 364 $ isdst: int 0 - attr(*, "tzone")= chr "GMT" # setting to 59 seconds now reports 0 str(unclass(as.POSIXlt("1969-12-31 23:59:59"))) List of 9 $ sec : num 0 $ min : int 59 $ hour : int 2...
2000 Jan 07
3
Group logon Scripts
We're almost at the stage of rolling out our new RH6.1/Samba server - one last item. We have some 60 users and 7 departments. Can I use/how do I use a logon script to log groups onto the server. I currently have 1 logon script per user, but a small change in 1 share means updating every script. Can I log them on by group ID but still map their personal shares with the %U flag so I then
2006 Aug 11
4
date (age) validation
I have an application that requires users to be in a specific age group, or above a certain age. For simplicity sake lets say they have to be at least 18. This is my most recent attempt to produce the desired result: validates_exclusion_of :birthday, :in => Range.new(Date.today, Date.parse( (18.years.ago).strftime(''%Y/%m/%d'') )), :message => "does not meet
2008 Apr 10
1
ISOdate/ISOdatetime performance suggestions, other date/time questions
...1e-4*trunc(runif(50000,1,60)) + 1e-6*runif(50000,1,60) posix.viaISOdate = function(x) { date = trunc(x at .Data) time = round(1e6*x at .Data%%1,2) rtime = round(time) z = list(sec=rtime%%1e2 + time%%1, min=(rtime%/%1e2)%%1e2, hour=rtime%/%1e4, mday=date%%100, mon=(date%/%100)%%100, year=date%/%10000) ISOdate(z$year,z$mon,z$mday,z$hour,z$min,z$sec) # to POSIXct } ## This is just a test of how is it faster to create a long POSIXlt object ## before another implementations are given origin = as.POSIXct("1970-01-...
2020 Oct 01
3
timezone tests and R-devel
...rtainly a non-standard setup. GCC 7.3 Best, Kasper On R version 4.0.3 beta (2020-10-01 r79286) I get > x = Sys.time() > attributes(x) $class [1] "POSIXct" "POSIXt" > attributes(as.POSIXlt(x)) $names [1] "sec" "min" "hour" "mday" "mon" "year" "wday" "yday" [9] "isdst" "zone" "gmtoff" $class [1] "POSIXlt" "POSIXt" $tzone [1] "US/Eastern" "EST" "EDT" > all.equal(x, as.POSIXlt(...
2006 Apr 10
3
timeAlign
I use POSIXct for datetimes. Is thee a timeAlign function that I can use where : align by year direction -1 ==> start of this year direction 1 ==> start of next year align by week direction -1 ==> date on last sunday direction 1 ==> date on next sunday align by day direction -1 ==> time at past midnight direction 1 ==> time at this comming
2000 Feb 23
0
Fwd: RE: Group logon Scripts
...above. > > > I am also including my root postexec script for the netlogon share. > > > > > > #!/usr/bin/perl > > # > > # log when a user "logs into the network" > > # and generate a custom logon script > > # > > ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = > > localtime(time); > > $month = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', > > 'Sep', 'Oct', 'Nov', 'Dec')[$mon]; > > open LOG, ">>/...