Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
C# QR Code Generator 4.0.2.2
Salesforce WordPress Customer Portal 3.2.0
Single Leg MLM 1.2.1
OzGIS 14.6
Quick Maps For Dynamics CRM 3.1
Job Board Software 4.2
PHP Real Estate Script 1.3.2
IP2Location Geolocation Database April.2019
dbForge Data Generator for Oracle 2.1
VisualNEO Web 2018.12.15
SentiMask SDK Trial 1.0.0
OrgChart JS 4.6.4
dotConnect for BigCommerce 1.8
FedEx Smart Shipping For Magento 1.0.0
Database Workbench Pro 5.6.2.311
Top Code
Cuckoo Search (CS) Algorithm 1.0
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Modbus RS232 ASCII Communication Functions 1.0
Job Board Software 4.2
Hyperion Tools 1.0
Emulator_8051 _8051
bit plane slicing 1.0
CardCheck COM DLL for Credit Card Processing 1.1
Efficient K-Means Clustering using JIT 1.0
webmoney - Webmoney payment gateway 5.x-1.2
Azizi search engine script PHP 4.1.10
Power System Stability and Control 1.0
NDRZilla NDR viewer
Image Cut (Image Splitter) 1.504
Comag Channel List Editor 1.0
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
Cheap-date trick; a different way to parse 
File ID: 64054






Cheap-date trick; a different way to parse 
Download Cheap-date trick; a different way to parse http://code.activestate.com/recipes/578064-cheap-date-trick-a-different-way-to-parse/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 1
Submit Rating:
Cheap-date trick; a different way to parse  Description
Description: ... a light meal with a heavy dose of "tutorial mash" on the side.

In the constructive spirit of "more ways to solve a problem"; this is a portion of my lateral, occasionally oblique, solutions. Nothing new in le regime de grande, but hopefully the conceptual essence will amuse.

Initially started as a response to recipe 577135 which parses incremental date fragments and preserves micro-seconds where available. That script does more work than this, for sure, but requires special flow-control and iterates a potentially incumbering shopping list (multi-dimensional with some detail).

So here's a different box for others to play with. Upside-down in a sense, it doesn't hunt for anything but a numerical "pulse"; sequences of digits punctuated by other 'stuff' we don't much care about.

Missing a lot of things, intentionally, this snippet provides several examples demoin' flexibility. Easy to button-up, redecorate and extend later for show, till then the delightful commentary makes it hard enough to see bones already -- all six lines or so!

Note: The core script is repeated for illustrative purposes. The first is step-by-step, the second is lean and condensed for utilitarian purposes. It is the second, shorter, version that I yanked from a file and gussied up.

License: Freeware

Related: Cheap, Date, Format, Grep, Parse, Regex, Sharp

O/S:Windows

Downloads: 1



More Similar Code

PassMasterFlex is a different way to Apache login on PHP based web portals. Logout function runs when the user exiting from windows. Cookies tool keep track of all user's login data and it rubs out the stored data after the user's logout. MD5 based password system encrypts login info. HTML tags can be used to format this script.



I was looking for a fast way to list all primes below n,
so far i came up to this with the numpy solution the fastest.
It does primes up to 10e6 in 15ms in my old machine,
and it is capable of reaching 10e9.



Have you ever thought about the fastest way to sort N numbers?

Last week I wrote a post about the fastest way to sort 3 numbers, this week I show you a tricky way to optimize the sort of N numbers.

The problem of sorting an...



This is a way to parse command line from user provided string or try to get the original Argv from Windows OS Platform.



Here is a convenient way to create, parse, alter, and write .pc files. Just pass PkgConfig() a file-like object, or None to start fresh. Print the object to create a new .pc file.

Some people might want even more functionality, but I...



Mini flickr gallery is a easy way to embed super flexible galeries from any flickr account or group, using different parameters to customise it.

Now with new features on 1.2 you can also load a photoset and load descriptions of your...



SQLDOM is an easy and robust way to parse HTML directly into SQL tables, manipulate DOM nodes in a JQuery-like manner, and to render HTML from the SQL-based DOM.

SQLDOM is written entirely in native T-SQL, and uses only temporary...



This is a reusable way to use "xml.parsers.expat" to parse an XML file. When re-using the "MyXML" class, all you need to define a new class, with "MyXML" as the parent. Once you have done that, all you have to do is...



Easy Relative Date is a simple plugin to add relative date supports on wordpress powered websites, like 'Today', 'Yesterday', '2 Days Ago', '2 Weeks Ago', '2 'Seconds Ago', '2 Minutes Ago', '2 Hours Ago'. The main advantage of the plugin is that...



Calendar Stamp is a plugin that will display the article's date in a nice way beside the title in Joomla!1.5 .Calendar Stamp comes with one template and 12 colors to choose what suits your website.

User Review for Cheap-date trick; a different way to parse
- required fields
     

Please enter text on the image