search for: mktime

Displaying 20 results from an estimated 92 matches for "mktime".

2012 Feb 20
10
[PATCH] hvm: Correct RTC time offset update error due to tm->tm_year
Hi In rtc_set_time, mktime is called to calculate seconds since 1970/01/01, input parameters of mktime are required to be in normal date format. Such as: year=1980, mon=12, day=31, hour=23, min=59, sec=59. However, the current input parameter of mktime is tm->tm_year, and it is the number of years since 1900. (For exa...
2008 May 15
1
bin/40278: mktime returns -1 for certain dates/timezones when it should normalize
With the testcode I put on http://www.stack.nl/~marcolz/FreeBSD/pr-bin-40278/40278.c I can reproduce it on FreeBSD 4.11: output on 4.11-STABLE ------ Init: mktime: 1014944400 Fri Mar 1 02:00:00 CET 2002 1: mktime: 4294967295 Fri Apr 0 02:00:00 CET 2002 Init: mktime: 1014944400 Fri Mar 1 02:00:00 CET 2002 2a: mktime: 1017622800 Mon Apr 1 03:00:00 CEST 2002 2b: mktime: 1017536400 Sun Mar 31 03:00:00 CEST 2002 Init: mktime: 1014944400 Fri Mar 1 02:00:00...
2005 Mar 17
1
icecast on an Intel XScale ARM processor
...value: 14. /opt/Embedix/tools/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14. /opt/Embedix/tools/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14. /opt/Embedix/tools/arm-linux/bin/ld: Dwarf Error: Could not find abbrev number 1032. /video/buildoutput/lib/libc.a(mktime.o): In function `__mktime_internal': mktime.o(.text+0x524): undefined reference to `__floatsidf' mktime.o(.text+0x534): undefined reference to `__floatsidf' mktime.o(.text+0x548): undefined reference to `__adddf3' mktime.o(.text+0x558): undefined reference to `__floatsidf' mktim...
2014 Oct 25
3
v2.2.15 released
http://dovecot.org/releases/2.2/dovecot-2.2.15.tar.gz http://dovecot.org/releases/2.2/dovecot-2.2.15.tar.gz.sig Some small fixes and changes to v2.2.14. This release is mainly in the hope that it could still make it into the next Debian stable instead of v2.2.14 - mainly because of a couple of new assert crashes that started happening in v2.2.14 and should be fixed now. * Plugins can now print
2014 Oct 25
3
v2.2.15 released
http://dovecot.org/releases/2.2/dovecot-2.2.15.tar.gz http://dovecot.org/releases/2.2/dovecot-2.2.15.tar.gz.sig Some small fixes and changes to v2.2.14. This release is mainly in the hope that it could still make it into the next Debian stable instead of v2.2.14 - mainly because of a couple of new assert crashes that started happening in v2.2.14 and should be fixed now. * Plugins can now print
2005 Feb 18
1
creating POSIXct dates in C
...anks in advance, Whit Here is my example in C: #include <stdio.h> #include <time.h> int main() { struct tm localtime_tm; struct tm utc_tm; time_t localtime_posix; time_t utc_posix; char buf[255]; strptime("1970-01-01", &localtime_tm); localtime_posix = mktime(&localtime_tm); // this prints 0 // which is what the time would be if we were in GMT // how do we convert this time to our timezone // taking into account that the offset is not // constant, since daylight savings time // will shift the offset by an hour // for certain times p...
2006 Jul 06
3
Understanding date_select naming conventions
I am using the date_select helper to generate date select elements in a form. I notice that the generated HTML shows that these selects have the following names: Month: current_job[StartDate(2i)] Day: current_job[StartDate(3i)] Year: current_job[StartDate(1i)] I''m assuming that the Xi identifiers somehow specify the appropriate date part from a date or time value. Can anyone
2007 Jun 16
1
Binary packagers: BSD license issues
...s as well which contain: * 4. Redistributions of any form whatsoever must retain the following * acknowledgment: * "This product includes software developed by Computing Services * at Carnegie Mellon University (http://www.cmu.edu/computing/)." And something similar in utc-mktime.c for Berkeley university as well. I think I'd really like to get rid of those base64.c and utc-mktime.c exceptions.. There's probably also an easier/faster way to implement utc_mktime(). Anyway.. Currently these copyrights or acknowledgments aren't listed anywhere else than in the so...
1999 Apr 08
0
Keep-timestamp-in-`get'-patch for smbclient in samba-2.0.3
...nux samba-2.0.3 server, but + Win98 returns garbage a_time, m_time (Win95 not tested). + ( Using gmtime() is correct here ? ) + printf("a:%ld m:%ld\n", a_time, m_time); + printf("a:%s m:%s\n", ctime(&a_time), ctime(&m_time)); */ + utb.actime = mktime(gmtime(&a_time)); + utb.modtime = mktime(gmtime(&m_time)); +#else + uint16 attribute = aDIR | aSYSTEM | aHIDDEN; + + /* Use cmd_dir() type of interface here. */ + cli_list(cli, rname, attribute, do_get_an_finfo); + + /* Now rname's finfo is copied in an_finfo */ + utb....
2011 May 25
1
rake task: uninitialized constant
...quot;, "FEB", "MAR", "APR", "MAG", "GIU", "LUG", "AGO", "SET", "OTT", "NOV", "DIC"] def parse_date_string(date_string) begin day, month, year = date_string.split("-") Time.mktime(year, CUSTOM_MONTHS.index(month), day).strftime("%Y-%m-%d") rescue return nil end end namespace :import do desc ''import pericolanti'' task :pericolanti => :environment do UnsafeBuilding.delete_all puts "Creating unsafe_buildings..." lines = F...
2012 Nov 13
0
older gcc don't know --as-needed
...pool-alloconly.o test_lib-test-network.o test_lib-test-ostream-file.o test_lib-test-primes.o test_lib-test-priorityq.o test_lib-test-seq-range-array.o test_lib-test-strescape.o test_lib-test-strfuncs.o test_lib-test-str-find.o test_lib-test-str-sanitize.o test_lib-test-time-util.o test_lib-test-utc-mktime.o test_lib-test-var-expand.o ../lib-test/libtest.la liblib.la -lrt libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wl,--as-needed -o test-lib test_lib-test-lib.o test_li...
2009 Feb 27
0
POSIXlt, POSIXct, strptime, GMT and 1969-12-31 23:59:59
...datetime.c: 695 if(!R_FINITE(secs) || tm.tm_min == NA_INTEGER || 696 tm.tm_hour == NA_INTEGER || tm.tm_mday == NA_INTEGER || 697 tm.tm_mon == NA_INTEGER || tm.tm_year == NA_INTEGER) 698 REAL(ans)[i] = NA_REAL; 699 else { 700 errno = 0; 701 tmp = mktime0(&tm, 1 - isgmt); 702 #ifdef MKTIME_SETS_ERRNO 703 REAL(ans)[i] = errno ? NA_REAL : tmp + (secs - fsecs); 704 #else 705 REAL(ans)[i] = (tmp == (double)(-1)) ? 706 NA_REAL : tmp + (secs - fsecs); 707 #endif 708 } I haven't been able to look further into th...
2008 Nov 04
1
R 2.8.0 compilation...
...ion... no checking whether C runtime needs -D__NO_MATH_INLINES... no checking for library containing connect... none required checking for library containing gethostbyname... none required checking for library containing xdr_string... none required checking for __setfpucw... no checking whether mktime sets errno... no checking for cblas_cdotu_sub in vecLib framework... no checking for CFStringGetSystemEncoding in CoreFoundation framework... no checking for tclConfig.sh... no checking for tclConfig.sh in library (sub)directories... /usr/lib/tcl8.5/tclConfig.sh checking for tkConfig.sh... no c...
2004 May 03
3
R 1.9.0 on AIX, 64-bit
I'm trying to get R 1.9.0 running on AIX 5.1 with the standard AIX compilers (xlc, xlf) and it is failing 2 of the tests, test-Reg in reg-tests-1.R like this: bash-2.05b$ tail -30 reg-tests-1.Rout.fail [,1] [,2] [1,] 1 3 [2,] 2 4 [3,] 1 3 [4,] 2 4 > stopifnot(typeof(res) == "list") > ## were not implemented in 1.8.1 > > > ## Date objects with
2011 Apr 20
3
Make as.factor an S3 generic?
...dress this and does not break make check-all. FWIW, the patch is against r55563, because with r55564 I see /home/mtmorgan/src/R-devel/src/main/dounzip.c:75:15: error: storage size of ?dt? isn?t known /home/mtmorgan/src/R-devel/src/main/dounzip.c:88:5: warning: implicit declaration of function ?mktime? make[3]: *** [dounzip.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/home/mtmorgan/bin/R-devel/src/main' make[2]: *** [R] Error 2 make[2]: Leaving directory `/home/mtmorgan/bin/R-devel/src/main' make[1]: *** [R] Error 1 make[1]: Leaving directory `/hom...
2018 Dec 04
2
Compilation error
...est_lib-test-seq-range-array.o test_lib-test-stats-dist.o test_lib-test-str.o test_lib-test-strescape.o test_lib-test-strfuncs.o test_lib-test-strnum.o test_lib-test-str-find.o test_lib-test-str-sanitize.o test_lib-test-str-table.o test_lib-test-time-util.o test_lib-test-unichar.o test_lib-test-utc-mktime.o test_lib-test-uri.o test_lib-test-var-expand.o test_lib-test-wildcard-match.o -L/lib ../lib-test/.libs/libtest.a ./.libs/liblib.a -ltirpc -lm /usr/bin/ld: test_lib-test-lib.o:(.data.rel.ro+0x108): undefined reference to `test_connection' collect2: error: ld returned 1 exit status make[4]: ***...
2007 Jan 05
2
Dovecot rc15 crash in mbox-sync-update.c
...-rewrite.c:552 mails = (struct mbox_sync_mail *) 0xcf238 offset = 1 dest_offset = 4294967295 next_end_offset = 14079696 next_move_diff = 6 start_offset = 1275633 expunged_space = 0 idx = 185 first_nonexpunged_idx = 0 padding_per_mail = 50 count = 542 ret = 0 __PRETTY_FUNCTION__ = "mktime(today) fail" #6 0x0003db84 in mbox_sync (mbox=0xc09c0, flags=32407386) at mbox-sync.c:1375 index_sync_ctx = (struct mail_index_sync_ctx *) 0xc1d58 sync_view = (struct mail_index_view *) 0xc1d90 sync_ctx = {mbox = 0xc09c0, flags = 0, input = 0xc5878, file_input = 0xc5750, write_fd = 10,...
2000 Jul 20
4
RFC: System and time support functions in R
...of year). (I think it also needs to record the timezone used.) Then we can have R functions as vectorized wrappers for the POSIX functions (not necesarily with these names) time (say Sys.date): date() as a POSIXtime variable. localtime / gmtime: convert POSIXtime to POSIXtm (local TZ/UTC) mktime: convert POSIXtm to POSIXtime strftime: convert POSIXtm to character string, flexibly. difftime: difference between times in secs. (The wrappers for the last two could handle POSIXtime and POSIXtm objects.) (Perhaps if these do not exist on a platform (unlikely...
2018 Nov 29
2
Best way of merging mbox files
When concatenating mbox files like described here https://xaizek.github.io/2013-03-30/merge-mbox-mailboxes/. You will end up with an 'unsorted' mbox file. Is this going to be a problem esspecially when they are large >2GB's and new emails will be written to it? The email client nicely sorts the message from folder A "foldera 5 last" as last, but of course the mbox is
2004 Apr 22
2
[PATCH] --timelimit and --stopat
...assert(stopat != NULL); + + if( 0 == stop_time_secs ) { + valid_time = strptime(stopat, "%y%m%d%H%M%S", &stopat_time); + if( NULL == valid_time ) { + rprintf(FERROR, "ERROR: invalid --stopat format: %s\n", stopat ); + exit_cleanup(RERR_SYNTAX); + } + stop_time_secs = mktime( &stopat_time ); + } + + if( -1 == stop_time_secs ) { + rprintf(FERROR, "ERROR: mktime() returned -1\n" ); + exit_cleanup(RERR_SYNTAX); + } + + now = time(NULL); + + return ( now > stop_time_secs ) ? 1 : 0; +} /** * Write len bytes to the file descriptor @p fd. @@ -772,6 +82...