Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MrSm1th

    Date first and last day of week given week and year

    use Date::Calc qw(:all); use Date::Calendar; ($year,$month,$day) = Today(); my ($sec,$min,$hour,$mday,$mon,$year, $wday,$yday,$isdst) = localtime time; $year += 1900; $mon++; $week = int(($day + Day_of_Week($year,$month,1) - 2) / 7) + 1; $dow = Day_of_Week($year,$month,$day)...
  2. MrSm1th

    Registry locate - User Must Change password at Next Logon

    Does anyone know where I can find in the registry or another place - When a new user is created if the "User Must Change password at Next Logon" checkbox was selected? The domain controllers are still running NT4.. -Thanks in advance
  3. MrSm1th

    Date::Calendar::Profile functions to calc holidays

    I wrote the subroutine for memorial day.. It works I tested it out over several years, but as you said before it's not too elegant. I need to learn more about references in perl, since this mod is loaded with them. # Calculate day before Memorial Day sub check { $Holidays = { "Memorial...
  4. MrSm1th

    Date::Calendar::Profile functions to calc holidays

    Thank You once again! I appreciate all your help. Your pretty darn good at this. I should be able to figure out memorial day from what you've done.. I hope. Here's how I've approached this, my problem was with calc memorial day, because it falls on the last Monday of May. Thanks Again! use...
  5. MrSm1th

    Date::Calendar::Profile functions to calc holidays

    Thanks for the reply! I still have a question. The link you referenced I have already been to and I do realize that the profiles.pm has a list of holidays included. I'm just not sure how to utilize it to calculate memorial day, specifically. I need to know every year - when the day before...
  6. MrSm1th

    Date::Calendar::Profile functions to calc holidays

    I'm using Date::Calendar::Profile to calcualate holidays; but I don't understand how to use the functions to calc memorial day or anyother holiday for that matter. Here's a sample of my code : use Strict; use Win32::Process; use Date::Calc qw(Delta_Days Today Nth_Weekday_of_Month_Year...

Part and Inventory Search

Back
Top