Did I find the right examples for you? yes no

All Samples(19)  |  Call(18)  |  Derive(0)  |  Import(1)

        def timestamp():
    # for now, don't worry about timezone fluff, and cut off the microseconds to become millis
    return  datetime.datetime.today().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]
        


src/r/a/RallyRestToolkitForPython-HEAD/pyral/restapi.py   RallyRestToolkitForPython(Download)
from .config  import USER_NAME, PASSWORD 
from .config  import START_INDEX, PAGESIZE, MAX_PAGESIZE, MAX_ITEMS
from .config  import timestamp
 
###################################################################################################
        if self._log:     
            scopeNote = '%s Following entries record Rally REST API interaction via %s for user: %s' % \
                        (timestamp(), self.service_url, self.user)
            self._logDest.write('%s\n' % scopeNote)
            self._logDest.flush()
        full_resource_url = "%s/%s" % (self.service_url, resource)
        if self._logAttrGet:
            self._logDest.write('%s GET %s\n' % (timestamp(), resource))
            self._logDest.flush()
##
            resource += ("?" + "&".join(augments))
        if self._log:
            self._logDest.write('%s GET %s\n' % (timestamp(), resource))
            self._logDest.flush()
        response = self._getResourceByOID(context, entityName, oid)
        if self._log:
            self._logDest.write('%s %s %s\n' % (timestamp(), response.status_code, resource))