Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

        def now_datetime():
  return datetime.datetime.now().strftime('%Y%m%d.%H%M')
        


src/s/e/self-tracking-HEAD/log_ping.py   self-tracking(Download)
(goog_avg, goog_max) = parse_ping(util.run(PING % 'google.com'))
 
now = util.now_datetime()
 
print '%s\tmotespace-avg\t%.2f' % (now, mote_avg)

src/s/e/self-tracking-HEAD/log_bandwidth.py   self-tracking(Download)
 
 
now = util.now_datetime()
 
print '%s\tin\t%.2f' % (now, calc_in())

src/s/e/self-tracking-HEAD/log_screensaver.py   self-tracking(Download)
  return 0
 
now = util.now_datetime()
 
print '%s\tscreensaver\t%d' % (now, is_running())

src/s/e/self-tracking-HEAD/log_net_load.py   self-tracking(Download)
bw_out = '%.2f' % bw_out
 
now = util.now_datetime()
print '%s\tin\t%s' % (now, bw_in)
print '%s\tout\t%s' % (now, bw_out)

src/s/e/self-tracking-HEAD/log_active_window.py   self-tracking(Download)
 
val = parse(util.run(CMD))
print util.now_datetime(), val 
 

src/s/e/self-tracking-HEAD/log_5m_cpu_load.py   self-tracking(Download)
fields = parse_uptime(uptime)
 
print util.now_datetime(), fields['load_5m']
 
 

src/s/e/self-tracking-HEAD/log_weather.py   self-tracking(Download)
 
 
now = util.now_datetime()
 
for loc in ['90034', '90401', 'seattle', 'kirkland', 'taipei', 'taichung']: