Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
2

2b 2b

@2b 2b
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • File listings in Windows seem to ignore Daylight Savings
    2 2b 2b

    I am on the west coast of the US, so my time zone is Pacific Time. Depending on whether I am using a Win2K or WinXP machine, I share or don't share the TZ with Tijuana, Mexico. I created the following console program //***************************************************************************** FILETIME Increment(FILETIME ft, const unsigned long long inc) { ULARGE_INTEGER uliTime; uliTime.LowPart = ft.dwLowDateTime; uliTime.HighPart = ft.dwHighDateTime; uliTime.QuadPart += inc; ft.dwLowDateTime = uliTime.LowPart; ft.dwHighDateTime = uliTime.HighPart; return ft; } //***************************************************************************** int _tmain(int argc, _TCHAR * argv[]) { static const unsigned long long OneThousand = 1000ll; static const unsigned long long OneSecond = OneThousand * OneThousand * 10ll; // 1000 milliseconds per second * 1000 microseconds per millisecond static const unsigned long long OneDay = 24 * 60 * 60 * OneSecond; char Name[45]; SYSTEMTIME sysCreationTime = { 0 }; SYSTEMTIME sysLastAccessTime = { 0 }; SYSTEMTIME sysLastWriteTime = { 0 }; sysCreationTime.wYear = 2007; sysCreationTime.wMonth = 1; sysCreationTime.wDayOfWeek = 4; sysCreationTime.wDay = 11; sysCreationTime.wHour = 12; sysCreationTime.wMinute = 0; sysCreationTime.wSecond = 0; sysCreationTime.wMilliseconds = 0; sysLastAccessTime = sysCreationTime; sysLastWriteTime = sysCreationTime; sysLastAccessTime.wHour = 1; sysLastWriteTime.wHour = 2; FILETIME fileCreationTime; FILETIME fileLastAccessTime; FILETIME fileLastWriteTime; ::SystemTimeToFileTime(&sysCreationTime, &fileCreationTime); ::SystemTimeToFileTime(&sysLastAccessTime, &fileLastAccessTime); ::SystemTimeToFileTime(&sysLastWriteTime, &fileLastWriteTime); fileCreationTime = Increment(fileCreationTime, 480ll * 60ll * OneSecond); // Pacific Std Time is 480 minutes less than UTC. UTC = local time + bias fileLastAccessTime = Increment(fileLastAccessTime, 480ll * 60ll * OneSecond); fileLastWriteTime = Increment(fileLastWriteTime, 480ll * 60ll * OneSecond); for(int i = 0; i < 365; ++i) { sprintf(Name, "%03d", i); HANDLE f = ::CreateFile(Name, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if(f == INVALID_HANDLE_VALUE) { ::fprintf(stderr, "Error CreateFile\n"); } else { if( ! ::SetFileTime(f, &fileCreationTime, &fileLastAccessTime, &fileLastWriteTime)) { ::fprintf(stderr, "Error SetF

    C / C++ / MFC css help

  • piece of javascript code
    2 2b 2b

    Let me nominate the value 47 as true. Why? Because I've always liked that value. So lets pustulate a language where zero and 47 are both true.

    The Weird and The Wonderful javascript com code-review

  • piece of javascript code
    2 2b 2b

    How many values do you think should be equated to true?

    The Weird and The Wonderful javascript com code-review
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups