search for: asctim

Displaying 20 results from an estimated 36 matches for "asctim".

Did you mean: asctime
2004 Dec 14
1
[LLVMdev] __time_t type instead of __time64_t inwin32/TimeValue.cpp
Replace __time_t with time_t in my question. I've compiled function: std::string TimeValue::toString() const { // Alas, asctime is not re-entrant on Windows... //hb: __time64_t ourTime = this->toEpochTime(); time_t ourTime = this->toEpochTime(); //hb: char* buffer = ::asctime(::_localtime64(&ourTime)); char* buffer = ::asctime(::localtime(&ourTime)); std::string result(buffer); return result.subst...
2004 Dec 14
0
[LLVMdev] __time_t type instead of __time64_t in win32/TimeValue.cpp
I'm not sure. Perhaps Jeff Cohen knows as he wrote this. Reid. On Tue, 2004-12-14 at 11:51, Henrik Bach wrote: > Hi, > > Is it necessary to use the VC6.1+ `__time64_t' type instead of __time_t in > win32/TimeValue.cpp? > > --------------- > In file included from > c:/projects/src/llvm-1/llvm/lib/System/TimeValue.cpp:51: >
2004 Dec 14
2
[LLVMdev] __time_t type instead of __time64_t in win32/TimeValue.cpp
Hi, Is it necessary to use the VC6.1+ `__time64_t' type instead of __time_t in win32/TimeValue.cpp? --------------- In file included from c:/projects/src/llvm-1/llvm/lib/System/TimeValue.cpp:51: c:/projects/build/MinGW/llvm-1-1/lib/System/platform/TimeValue.cpp: In member function `std::string llvm::sys::TimeValue::toString() const':
1999 Jun 28
1
2.0.4b/rh60/smbstatus: European characters (accented) (PR#18293)
...le: /data/cvs/samba/source/utils/status.c,v retrieving revision 1.34.2.3 diff -u -r1.34.2.3 status.c --- status.c 1999/06/12 02:40:07 1.34.2.3 +++ status.c 1999/06/28 00:06:58 @@ -135,7 +135,8 @@ else printf("NONE "); - printf(" %s %s",fname,asctime(LocalTime((time_t *)&e->time.tv_sec))); + printf(" %s %s",dos_to_unix(fname,False), + asctime(LocalTime((time_t *)&e->time.tv_sec))); } } -- -------------------------------------------------------- Buying an operating system without source is like b...
2019 Aug 22
0
[PATCH disk-sync 4/5] Require libnbd >= 0.9.8 and fail hard if it's an earlier version.
...martConnect, Disconnect from pyVim.task import WaitForTask +from packaging import version + import nbd from six.moves.urllib.parse import urlparse, unquote @@ -15,6 +17,8 @@ import ssl import sys import json +NBD_MIN_VERSION = version.parse("0.9.8") + LOG_FORMAT_TIME = '[%(asctime)s] ' LOG_FORMAT_MSG = ': %(message)s' @@ -582,6 +586,13 @@ def main(): '''TODO: Add some description here ''' args = parse_args() + + nbd_version = version.parse(nbd.NBD().get_version()) + if nbd_version < NBD_MIN_VERSION: + loggin...
2005 Feb 19
0
[Error] Using validates_presence_of for datetime field causes parse error?
...cord-1.6.0/lib/active_record/ validations.rb:442:in `add_on_empty'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.6.0/lib/active_record/ validations.rb:378:in `run_validations'' <snip> What gives? If I change my unit test''s setup method to assign DateTime.now.asctime to my creation_date field, it works, but why can''t I just store a DateTime object in the Active Record object''s field? Thanks for any suggestions! - Sean
2004 Jan 29
2
windows and log time with %t is not displayed
Hi, I use the following log format on windows and Unix platforms: from windows batch script: --log-format="%%t [%%p] <recv<%USER_IP%<%USER%<%%f<%%l<%%b" from unix bash script: --log-format="%t [%p] <recv<${USER_IP}<${USER}<%f<%l<%b" Here are examples of the log lines (on one line): windows client: 2004/01/28 [2308]
2010 Sep 20
0
No subject
...ing showing user-readable datetime Logging using flags instead of counters diff --git a/src/logger.c b/src/logger.c index bc20438..5312ef5 100644 --- a/src/logger.c +++ b/src/logger.c @@ -69,14 +69,23 @@ =20 va_start(ap, format); =20 + time_t t =3D time(NULL); + char time[32]; + char* time1 =3D asctime(localtime(&t)); + strncpy(time, time1, 26); + char* newline =3D strchr(time, '\n'); + if(newline) + *newline =3D '\0'; + switch(logmode) { case LOGMODE_STDERR: + fprintf(stderr, "%s%s ", time, ":"); vfprintf(stderr, format, ap); fprintf(stder...
2019 Aug 22
7
[PATCH disk-sync 0/5] Misc cleanups and convert inner loop to asynch.
This is based on top of: https://github.com/nertpinx/v2v-conversion-host/commit/0bb2efdcacd975a2cae7380080991ac7fc238d2b The first 4 patches are fairly uncontroversial miscellaneous cleanups. Patch 5 is the interesting one. (Note it doesn't quite work yet, so it's for discussion only.) Patch 5 converts the inner loop to use asynchronous libnbd calls. performance improves quite a bit for
2006 Mar 31
6
Calculating Dates
Hello, I am a complete newbie with Ruby and Rails. I am working on learning it by writing a project I was going to write in PHP using Rails. I am having a difficult time finding clear information on how I would do this. I need to take a date out of a table in my database and given another day calculate the next 28 day anniversery of the original date. This is used to calculate a delivery
2018 Jul 09
1
slow mailbox refreshes
Hello, I am using dovecot 2.3.2 on my private email server in conjunction with: centos 7.5 apache 2.4.6 mariadb 10.2.16 roundcube mail 1.3.6 php 5.6.36 postfix 2.10.1 I have one mailbox with nearly 30k messages in it dispersed across several folders. it's often very slow in refreshing the message list, especially in the one largest 25k+ message folder. is this simply to be expected
2018 Mar 16
0
Wine release 3.4
...9;hardlock.sys' kernel driver expects ntdll.RtlCheckRegistryKey to return STATUS_SUCCESS on empty path ---------------------------------------------------------------- Changes since 3.3: Akihiro Sagawa (3): user32: Add more ex-style trace messages. ucrtbase: Add a test that shows asctime() uses space-padding for day of month. ucrtbase: Asctime() uses space-padding for day of month as seen in C89. Alex Henrie (2): msvcrt: Compile but show an error if Bessel functions aren't available. imm32: Fix capitalization of ImmDisableLegacyIME in its comment. Alexander...
2005 Mar 09
21
Converting time retrieved from MySQL
I''m having a problem converting a date retrieved from my MySQL database and I''m hoping someone can help. MySQL stores the date/time as this: 2005-03-08 17:00:34.0 and according to my Pickaxe book Ruby stores times as "the number of seconds and microseconds since [...] January 1, 1970". All well and good. Unfortunately, RoR is converting my date to this:
2000 Mar 31
3
Samba 2.0.7pre3 snapshot released.
...tgroups. Don't depend on NGROUPS_MAX being correctly defined in header files. 15). Fix for crash bug in floating point in snprintf. 16). "Safe" version of popen() included to allow use in code such as "source environment" patch. 17). Fix for SWAT for trailing '\n' in asctime(). 18). Wildcard match fix from weidel@multichart.de for NT wildcard processing. 19). unix_mask_match fixes for "veto files" parameter. 20). Fix for system call bug when configuring on Linux kernel 2.0.x with glibc2.1.x. 21). SO_REUSEPORT socket option added for HPUX. 22). All recv() cal...
2016 Oct 11
4
Port to other Operating Systems
Hello all, Pardon me if this has already been covered elsewhere, however I have not been able to find such documentation. Is there a consolidated set of documentation that clearly explains what's necessary to port LLVM to other OSes & how to add support for building executables (& libraries) for those OSes? I'm searching through the source in an attempt to understand what needs to
2000 Apr 15
1
Samba 2.0.7pre4 snapshot released.
...tgroups. Don't depend on NGROUPS_MAX being correctly defined in header files. 15). Fix for crash bug in floating point in snprintf. 16). "Safe" version of popen() included to allow use in code such as "source environment" patch. 17). Fix for SWAT for trailing '\n' in asctime(). 18). Wildcard match fix from weidel@multichart.de for NT wildcard processing. 19). unix_mask_match fixes for "veto files" parameter. 20). Fix for system call bug when configuring on Linux kernel 2.0.x with glibc2.1.x. 21). SO_REUSEPORT socket option added for HPUX. 22). All recv() cal...
2008 Sep 10
1
Xen-3.3 Etch amd64 compil error
.../signal/signal.c:110: erreur: too many arguments to function ''_malloc_r'' make[8]: *** [lib_a-signal.o] Erreur 1 Dans le fichier inclus à partir de /usr/src/xen-3.3.0/stubdom/../extras/mini-os/include/time.h:22, à partir de ../../../../../newlib-1.16.0/newlib/libc/time/asctime.c:50: /usr/src/xen-3.3.0/stubdom/../extras/mini-os/include/mini-os/types.h:22:20: erreur: stddef.h : Aucun fichier ou répertoire de ce type In file included from /usr/src/xen-3.3.0/stubdom/newlib-1.16.0/newlib/libc/include/sys/types.h:61, from /usr/src/xen-3.3.0/stubdom/newlib-...
2004 Apr 10
0
patches for copying atimes
...mebuf[200]; + + strlcpy(mtimebuf, timestring(modtime), sizeof(mtimebuf)); + strlcpy(atimebuf, timestring(atime), sizeof(atimebuf)); + + rprintf(FINFO, + "set modtime, atime of %s to (%ld) %s, (%ld) %s\n", fname, (long) modtime, - asctime(localtime(&modtime))); + mtimebuf, + (long) atime, atimebuf); } { #ifdef HAVE_UTIMBUF struct utimbuf tbuf; - tbuf.actime = time(NULL); + tbuf.actime = atime; tbuf.modtime = modtime; return utime(fname,&tbuf); #elif defined(HA...
2012 Jul 19
2
[PATCH] pygrub: add syslog support to pygrub
..." % kernel) + sep if ramdisk: @@ -693,9 +695,19 @@ def format_simple(kernel, ramdisk, args, s += sep return s +def init_log(): + logger = logging.getLogger() + handler = logging.handlers.SysLogHandler(address=''/dev/log'') + file_format = (''[%(asctime)s %(process)d] %(levelname)s '' + ''(%(module)s:%(lineno)d) %(message)s'') + handler.setFormatter(logging.Formatter(file_format)) + logger.addHandler(handler) + logger.setLevel(logging.DEBUG) + if __name__ == "__main__": + init_log()...
2004 Apr 20
1
improved atime patch
...mebuf[200]; + + strlcpy(mtimebuf, timestring(modtime), sizeof(mtimebuf)); + strlcpy(atimebuf, timestring(atime), sizeof(atimebuf)); + + rprintf(FINFO, + "set modtime, atime of %s to (%ld) %s, (%ld) %s\n", fname, (long) modtime, - asctime(localtime(&modtime))); + mtimebuf, + (long) atime, atimebuf); } { #ifdef HAVE_UTIMBUF struct utimbuf tbuf; - tbuf.actime = time(NULL); + tbuf.actime = atime; tbuf.modtime = modtime; return utime(fname,&tbuf); #elif defined(HA...