Skip to content

FutureNorthants/uk-time-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

UK Time API - CHATBOT

A simple AWS Lambda function that returns the current UK time with timezone information.

Features

  • Returns current UK time in GMT/BST
  • Automatically detects daylight saving time
  • Cross-platform timezone handling (Windows/Linux)
  • JSON API response with CORS headers

API Response

{
  "currentTime": "2024-01-15 14:30:45",
  "timeZone": "GMT (Greenwich Mean Time)",
  "isDaylightSaving": false,
  "message": "Current UK time retrieved successfully"
}

Quick Start

Prerequisites

  • .NET 8.0 SDK
  • AWS CLI configured
  • Amazon.Lambda.Tools

Build & Test

dotnet build
dotnet test

Deploy to AWS Lambda

cd src/UKTimeAPI
dotnet lambda deploy-function

Project Structure

├── src/UKTimeAPI/           # Lambda function source
│   ├── Function.cs          # Main handler
│   └── Models/              # Response models
├── test/UKTimeAPI.Tests/    # Unit tests
└── README.md

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages