Searched refs:now (Results 1 - 25 of 39) sorted by relevance

12

/ast/src/lib/libast/tm/
H A Dtmxduration.c38 Time_t now; local
45 now = TMX_NOW;
49 ns = tmxdate(s, &last, now) - now;
57 ts = tmxdate(t, &x, now);
61 ns = ts - now;
67 ts = tmxdate(t, &x, now);
71 ns = ts - now;
H A Dtvtouch.c94 Tv_t now; local
169 tvgettime(&now);
171 av = (const Tv_t*)&now;
173 mv = (const Tv_t*)&now;
198 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now && !utimets(path, NiL))
227 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now && !utimes(path, NiL))
239 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now
[all...]
H A Dtmxtime.c53 time_t now; local
95 now = tmxsec(tmxtime(tm, tm_info.zone->west));
97 if (!(tl = tmlocaltime(&now)))
113 now = tmxsec(tmxtime(tm, tm_info.zone->west));
115 if (!(tl = tmlocaltime(&now)))
H A Dtmxmake.c45 time_t now; local
111 now = tmxsec(t);
118 now = tmxsec(tmxtime(&te, tm->tm_zone->west));
120 if ((tp = tmlocaltime(&now)) && ((tm->tm_isdst = tp->tm_isdst) || o))
H A Dtminit.c217 time_t now; local
262 time(&now);
263 n = tzwest(&now, &isdst);
272 now -= 31 * 24 * 60 * 60;
273 if ((m = tzwest(&now, &isdst)) != n)
289 * now get the time zone names
417 now = (time_t)78811200; /* Jun 30 1972 23:59:60 */
418 tp = tmlocaltime(&now);
H A Dtmxfmt.c118 Time_t now; local
396 now = tmxgettime();
397 if (warped(t, now))
491 now = tmxgettime();
492 p = warped(t, now) ? (char*)0 : (char*)format;
519 now = t;
527 cp += sfsprintf(cp, ep - cp, fmt, tmxsec(now));
530 n = sfsprintf(cp, ep - cp, ".%09I*u", sizeof(Tmxnsec_t), tmxnsec(now));
/ast/src/lib/libcmd/
H A Ddate.c219 settime(Shbltin_t* context, const char* cmd, Time_t now, int adjust, int network) argument
227 return tmxsettime(now);
235 tmxfmt(buf, sizeof(buf), "%m%d%H" "%M%Y.%S", now);
241 tmxfmt(buf, sizeof(buf), "%Y%m%d%H" "%M.%S", now);
260 convert(register Fmt_t* f, char* s, Time_t now) argument
267 now = tmxscan(s, &t, f->format, &u, now, 0);
273 return now;
284 Time_t now; local
392 now
[all...]
/ast/src/lib/libtksh/tcl/
H A DtclUnixTime.c43 TclpGetTimeZone(now)
44 unsigned long now;
113 unsigned long now;
122 now = (unsigned long) times(&dummy);
125 now = date.tv_sec*1000000 + date.tv_usec;
128 return now;
111 unsigned long now; local
H A DtclDate.c70 * yacc had the %union construct.) Maybe someday; right now we only use
255 { "now", tMINUTE_UNIT, 0 },
497 time_t now; local
499 now = Start;
500 tm = TclpGetDate(&now, 0);
501 now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7);
502 now += 7 * SECSPERDAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1);
503 return DSTcorrect(Start, now);
724 TclGetDate(p, now, zone, timePtr)
726 unsigned long now;
[all...]
H A DtclEvent.c309 * From now on, whenever the I/O channel given by file becomes
504 * now ready.
913 * now ready.
2198 Tcl_Time abortTime, now, blockTime;
2207 TclpGetTime(&now);
2208 abortTime.sec = now.sec + timeout/1000;
2209 abortTime.usec = now.usec + (timeout%1000)*1000;
2224 blockTime.sec = abortTime.sec - now.sec;
2225 blockTime.usec = abortTime.usec - now.usec;
2249 TclpGetTime(&now);
2165 Tcl_Time abortTime, now, blockTime; local
[all...]
/ast/src/cmd/3d/
H A Dtouch.c80 time_t now; local
101 time(&now);
102 if (!atime) atime = now;
103 if (!mtime) mtime = now;
154 return((atime != now || mtime != now) ? utime(file, ut) : 0);
162 if (atime == now && mtime == now && (fd = open(file, O_RDWR|O_cloexec)) >= 0)
H A Dvcs_3d.h44 time_t now; \
/ast/src/cmd/ksh93/sh/
H A Dtimers.c49 register double now; local
53 now = tp.tv_sec + 1.e-6*tp.tv_usec;
56 now = (double)time((time_t*)0);
58 return(now+.001);
90 double now; local
109 now = getnow();
116 if(tp->wakeup <=now)
140 while((tp->wakeup += tp->incr) <= now);
144 if(tpmin && (left==0 || (tp && tpmin->wakeup < (now+left))))
148 left = setalarm(tpmin->wakeup-now);
[all...]
/ast/src/cmd/tests/
H A Dtestdate.sh24 now=2008-05-01+01:02:03
28 then printf $'%s\t\t\t\t\t%s\t%s\n' "SET" "NOW" "$now"
47 then printf $'%s%sNULL\t%s\n' "$d" "$sep" "$(date -s "$now $d" | tail -1)"
48 else printf $'%s%sNULL\t%s\n' "$d" "$sep" "$(date -s "$now" "$d" | tail -1)"
50 else printf $'%s %s\n' "$(date -s "$now" "$d" | tail -1)" "$d"
56 now
/ast/src/cmd/nmake/
H A Dtrap.c121 register Seconds_t now; local
124 now = CURSECS;
127 else if (trap.alarms->time <= now)
130 t = trap.alarms->time - now;
132 sfsprintf(tmpname, MAXNAME, "%lu", t ? (now + t) : t);
143 error(level, "%6s %s %s", fmtelapsed((a->time >= now) ? (a->time - now) : 0, 1), timestr(tmxsns(a->time, 0)), a->rule->name);
163 Seconds_t now; local
166 now = CURSECS;
169 t += now;
[all...]
/ast/src/cmd/ksh93/bltins/
H A Dsleep.c73 Time_t now,ns; local
75 now = TMX_NOW;
77 ns = tmxdate(cp, &last, now);
90 ns = tmxdate(pp, &last, now);
92 ns = tmxdate(pp, &last, now);
96 d = ns - now;
114 time_t now; local
121 if(tloc < (now=time(NIL(time_t*))))
123 d = (double)(tloc-now);
H A Dalarm.c190 double now; local
194 now = tmp.tv_sec + 1.e-6*tmp.tv_usec;
196 now = (double)time(NIL(time_t*));
202 double x = d + now;
206 d -= now;
/ast/src/cmd/ksh93/tests/
H A Dtimetype.sh37 then .sh.value=${ printf "%(${_._})T" now ;}
47 d=$(printf "%(%F+%H:%M)T" now)
/ast/src/cmd/warp/
H A Dwarp.sh22 integer warp now base factor
41 [+?where \awarp\a is \adate-now\a, \abase\a is \adate\a by default, and
164 (( now = $(LD_LIBRARY_PATH=$root/lib:$LD_LIBRARY_PATH $root/bin/date -f %s) ))
166 now) (( warp = now ))
180 ''|now) (( base = now ))
193 (( warp = warp - now ))
/ast/src/cmd/ss/
H A Dssd.c42 #define since(t) ((now>((unsigned long)t))?(now-((unsigned long)t)):0L)
240 update(char* data, unsigned long now, int delay, CSSTAT* ss) argument
256 if (now)
258 if (now > next || ss->idle < idle)
260 next = now + delay;
261 now = 0;
265 if (!now && csnote(data, ss) || stat(data, &st)) finish(1);
293 unsigned long now; local
462 now
[all...]
/ast/src/cmd/at/
H A Dat.c66 " \bevery Monday\b.]:[time:=now]"
166 time_t now; local
193 date = "now";
374 now = time(NiL);
375 start = tmdate(s, &t, &now);
376 if (!every && (unsigned long)start <= (unsigned long)now)
377 start = tmdate(s - 3, &t, &now);
/ast/src/cmd/cs/vcs_src/
H A Dvcs_dir.c26 static time_t now; variable
118 now = cs.time;
137 if (R_ISMARKER(dp->tag) && dp->tag->stat.st_mtime < now)
/ast/src/lib/libast/sfio/
H A Dsfreserve.c38 reg ssize_t n, now, sz, iosz; local
104 if((n = now = f->endb - f->next) < 0)
127 now = n;
157 if(n == now || sferror(f) || sfeof(f)) /* no progress */
/ast/src/cmd/mailx/
H A Dlocal.c835 time_t now; local
837 now = time(NiL);
842 st.st_mtime = st.st_atime = now;
847 atime = now;
851 mtime = now;
/ast/src/cmd/std/
H A Dpss-ps.c44 unsigned long now; member in struct:State_s
74 state->now = (unsigned long)time(NiL) + 60;
296 if ((unsigned long)pe->start > state->now)

Completed in 740 milliseconds

12